SYS_USER_DEP
Use the SYS_USER_DEP script function to retrieve the department of the user who started the task. For example, if the user is SMITH/DEV, the script function returns the string DEV.
Tip: You can also find information about the user in the execution lists. For more information, see Execution Data.
Syntax
SYS_USER_DEP ()
Return Codes
The script function returns the department of the user.
Examples
The following example retrieves the department used to log on and writes the result to the activation report.
:SET &LOGDEP# = SYS_USER_DEP ()
:PRINT "Login information: The user department is &LOGDEP#."
See also: