Provides the name of the terminal at which the NCL procedure is executing.
&LUNAME provides a system variable for the name of the terminal at which the user is currently logged on or, in the case of the EASINET procedure, it provides the name of the terminal where the procedure is executing.
Example: &LUEXTHI
&IF &LUNAME EQ TERM1 &THEN + &GOTO .OK
The value returned from &LUNAME is a 1 to 8 character value.
Certain system environments use virtual user IDs and terminals names. The following values are returned for system environments:
background monitor
background logger
background system environment
AOMPROC procedure
CNMPROC procedure
LOGPROC procedure
PPOPROC procedure
logical console associated with the sysoper user ID
system console number nn
ROF user
Note: Other optional features that generate internal system environments allocate additional pseudo terminal names, which appear on a SHOW SESS command display as xxx-PROC, where xxx is the first three letters of the associated system level NCL procedure name.
| Copyright © 2009 CA. All rights reserved. |
|