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 that is specified for the Job.
Note: SYS_ACT_USERID supplies the same result as GET_ATT with the USERID attribute.
Important! Use this script function in Jobs only.
More Information:
Syntax
SYS_ACT_USERID ()
Example
A Job contains the following script. When the Job runs, the script prints the login information in the activation report of the Job.
:SET &URET# = SYS_ACT_USERID()
:SET &LRET# = GET_ATT(LOGIN_INFO)
:PRINT "User ID: &URET#",
"Full login information: &LRET#"
See also: