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.

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 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:

seealso

Script Elements for User Interaction and User Data