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:
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.
The device is a typewriter or line-by-line type terminal or printer.
The procedure is running under a Remote Operator Facility (ROF) session which has been logged on across an INMC session.
The procedure is running under an APPC user region.
The procedure is running under a system console region.
The procedure is executing under the background AOM region.
The procedure is executing under the PPOPROC region.
The procedure is executing under the LOGPROC region.
The procedure is executing under the CNMPROC region.
The procedure is executing under the background monitor region.
The procedure is executing under the background logger region.
The procedure is executing under the background server region.
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.
| Copyright © 2009 CA. All rights reserved. |
|