Previous Topic: &LUEXTHI

Next Topic: &LUROWS


&LUNAME

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:

BG-MON

background monitor

BG-LOG

background logger

BG-SYS

background system environment

AOM-PROC

AOMPROC procedure

CNM-PROC

CNMPROC procedure

LOG-PROC

LOGPROC procedure

PPO-PROC

PPOPROC procedure

CONSOLE

logical console associated with the sysoper user ID

CONS#nn

system console number nn

*REMOTE*

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.