SYS_USER_DEP
Script Function: Supplies the department of the user who has started the task.
Syntax
SYS_USER_DEP ()
Return code |
---|
Department of the user. |
This script function determines the department of the user who has started the task. If the user is SMITH/DEV, the script function returns the string DEV.
Example
The following example uses this script function in order to retrieve the department that has been used to log and writes the result to the activation report.
:SET &LOGDEP# = SYS_USER_DEP()
:PRINT "Login information: The user department is &LOGDEP#."
See also: