Returns the user ID of the user currently executing the procedure.
A system maintained variable that returns the user ID of the user currently executing the procedure.
NCL procedures execute in an NCL processing region associated with a user ID. The user ID is a real user or alternatively the procedure can execute in the NCL processing region of one of the special internal user IDs that support the various system level processing regions within the system.
The internal user IDs within a system are formed from the system's domain ID (as specified by the NMDID initialization parameter) and a suffix that represents the particular internal environment that they support. However, the EASINET system user is always returned as EASINET, irrespective of the domain ID.
Typical internal user IDs are those that support the various background environments such as the background logger, the background monitor and the background system environment.
Example: &USERID
&WRITE DATA=YOUR USERID IS &USERID AND AUTHORITY IS &USERAUTH
&IF &USERID EQ SYSPROG &THEN +
&GOTO .ALLOW
Notes:
The SHOW USERS command displays a list of the active user IDs.
The value returned from &USERID is a 1- to 8-character value.
| Copyright © 2009 CA. All rights reserved. |
|