Previous Topic: &ZCOLS

Next Topic: &ZCURSFLD


&ZCONSOLE

Returns the system console number associated with a console user ID.

When a product command is received from a real console, a user ID environment is created and logically logged on to represent the console and the privileges associated with it. An NCL process executing in the processing region of this user ID can reference the &ZCONSOLE system variable to determine the real console number associated with the user ID. This variable returns a null value for any user ID that does not represent a console environment.

Example: &ZCONSOLE

&IF .&ZCONSOLE EQ . &THEN +
    &GOTO .NOCONSOLE

Note: For more information about console management, see the Reference Guide.