Previous Topic: &TIME

Next Topic: &USERID


&USERAUTH

Returns the command authority of the user who initiated the procedure.

Returns a numeric value in the range 0 to 255, indicating the command authority level of the user who initiated the procedure.

Example: &USERAUTH

&WRITE DATA=YOUR USERID IS &USERID AND AUTHORITY IS &USERAUTH 
&IF &USERAUTH NE 255 &THEN +
   &GOTO .REJECT

Notes:

If an NCL process is executing on behalf of another user, for example, as a result of a SUBMIT command, the originating user's authority is propagated.

If USER1 issues the command

-SUBMIT BSYS -START PROC1

where USER1 has authority 1, and the BSYS environment has authority 9, use of &USERAUTH in this execution of PROC1 returns 1, not 9.