SYS_ACT_USERID

Use the SYS_ACT_USERID script function to retrieve the username/ID under which a Job runs. The script function returns the user name from the user profile in the Login object specified for the Job.

Note: SYS_ACT_USERID returns the same result as GET_ATT with the USERID attribute.

Important! Use this script function in Jobs only.

More information:

Syntax

SYS_ACT_USERID ()

Examples

A Job contains the following script. When the Job runs, the script prints the login information in the activation report.

: SET &URET# = SYS_ACT_USERID ()

: SET &LRET# = GET_ATT (LOGIN_INFO)

: PRINT "User ID: &URET#" , "Full login information: &LRET#"

See also: