Previous Topic: &ZLUNETID

Next Topic: &ZLU1CHN


&ZLUTYPE

The &ZLUTYPE system variable indicates the type of device or region.

NCL procedures might need to vary processing depending on the type of device in use, or NCL environment the procedure is running in. For example, the EASINET procedure cannot use an &PANEL statement to display data on an LU1 type device. The procedure must therefore determine the type of device and process accordingly.

The &ZLUTYPE variable returns one of the following values:

3270

The device is a full-screen type device, either LU0 or LU2. The &ZROWS and &ZCOLS system variables is used to determine the device dimensions.

LU1

The device is a typewriter or line-by-line type terminal or printer.

ROF

The procedure is running under a Remote Operator Facility (ROF) session which has been logged on across an INMC session.

APPC

The procedure is running under an APPC user region.

OPER

The procedure is running under a system console region.

AOMP

The procedure is executing under the background AOM region.

PPOP

The procedure is executing under the PPOPROC region.

LOGP

The procedure is executing under the LOGPROC region.

CNMP

The procedure is executing under the CNMPROC region.

BMON

The procedure is executing under the background monitor region.

BLOG

The procedure is executing under the background logger region.

BSVR

The procedure is executing under the background server region.

BSYS

The procedure is executing under the background system region.

Example: &ZLUTYPE

& IF &ZLUTYPE EQ LU1 &THEN +
   &WRITE DATA=Enter Logon Request ==>

&IF &ZLUTYPE EQ OPER &THEN +
   &ENDAFTER &WRITE DATA=Invalid Request

Notes:

Apart from being used in the EASINET procedure, this variable offers an easy way to detect when a procedure is operating under one of the specialized system regions such as the system console.

The &ZNCLTYPE system variable is used to determine the type of the NCL process.

See Also: The &ZNCLTYPE system variable.

More information:

&ZNCLTYPE