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

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: