SYS_USER_NAME
Use the SYS_USER_NAME script function to retrieve the name of the user who started the task. For example, if the user is SMITH/DEV, the script function returns the string SMITH. Tasks can be started manually, with the ACTIVATE_UC_OBJECT script function, or through Workflow or Schedule objects. If the task that calls SYS_USER_NAME belongs to a Schedule object, the script function returns 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_NAME ()
Return Codes
The script function returns the name of the user.
Examples
The following example retrieves the logon name and writes it to the activation report.
:SET &LOGN# = SYS_USER_NAME ()
:PRINT "Login information: The name of the user is &LOGN#."
See also: