SYS_USER_NAME
Use the SYS_USER_NAME script function to retrieve the name of the user who has started the task. If this user is SMITH/DEV, the script function returns the string SMITH. 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 the SYS_USER_NAME script function is called belongs to a Schedule object, this script function retrieves the department 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 code
This script function returns the name of the user.
Example
The following example determines the name used to log on using this script function and writes it to the activation report.
:SET &LOGN# = SYS_USER_NAME()
:PRINT "Login information: The name of the user is &LOGN#."
See also: