Automation Engine Script Guide > Ordered by Function > Activation Data > SYS_ACT_USERID

SYS_ACT_USERID

Script Function: Supplies the User ID under which the job will run

Syntax

SYS_ACT_USERID()

Return code

User name from the Login object

Comments

This script function can only be used in jobs. This script function retrieves the User ID under which a job will be executed. It is read from the login information of  the Login object specified in the "Attributes" tab of this job.

This script function supplies the same result as GET_ATT with the attribute USERID.

Example

The following example prints the User ID and the entire 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:

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function