SYS_USER_DEP
Use the SYS_USER_DEP script function to retrieve the department of the user who has started the
task. If the user is SMITH/DEV, this 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 code
This script function returns the department of the user.
Example
The following example uses this script function to retrieve 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: