SYS_USER_LNAME

Use the SYS_USER_LNAME script function to retrieve the first and last name of the user who started the task (for example, "John Smith"). The full name can be defined in the User object on the User page. For more information, see Defining Users . You can start tasks manually, using the ACTIVATE_UC_OBJECT script function, through Workflow objects, or Schedule objects. For example, if the task in which SYS_USER_LNAME is called belongs to a Schedule object, this script function retrieves the name of the user who started the Schedule object.

Tip: You can also find information about the user in the execution lists. For more information, see Execution Data.

Syntax

SYS_USER_LNAME ()

Return Codes

Returns the first and last name of the user. Returns " " if the name is not defined.

Examples

The following example retrieves the first and last name of the user who started the task and writes it to the activation report.

: SET &LOGLN# = SYS_USER_LNAME ()

: PRINT "Login information: User's first and last names are &LOGLN#."

See also: