SYS_USER_NAME

Script Function: Supplies the name of the user who has started the task.

Syntax

SYS_USER_NAME ()

Return code

Name of the user

This script function retrieves the name of the user who has started the task. If the user is SMITH/DEV, the script function returns the string SMITH.

Note: You can start tasks manually or by using the ACTIVATE_UC_OBJECT script function via Workflow and Schedule objects. If the task in which SYS_USER_DEP is called belongs to a Schedule object, this script functions supplies 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.

Example

The following example determines the name that has been 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:

seealso

Script Elements for User Interaction and User Data