dliVar system variable

The dliVar system variables contain information about the most recent DL/I database I/O.

These variables are available only if you assign the complex property @DLI to your program.

Except for dliVar.handleHardDLIErrors and dliVar.cicsRestart, all the dliVar variables behave as follows:
The variables are as follows:
Table 1. dliVar variables
Variable name Description
cicsCondition CICS condition code (if any) on the most recent DL/I I/O call.
cicsError CICS error code (if any) on the most recent DL/I I/O call.
cicsRestart On CICS, this variable specifies whether the DL/I program was restarted after a deadlock.
dbName The name of the DL/I database accessed on the most recent DL/I I/O call.
handleHardDLIErrors Controls whether a program continues to run after a hard error occurs on a DL/I I/O operation. You must be in V6 exception mode and the statement must be in a try block.
keyArea The concatenated key of the lowest-level segment found on the most recent DL/I I/O call.
keyAreaLen The number of bytes of the keyArea field that were used on the most recent DL/I I/O call.
numSensitiveSegs The number of segment types to which a program is sensitive for the database that was accessed during the last DL/I I/O function.
procOptions The DL/I options for the database that was accessed by the last DL/I I/O call.
segmentLevel The level number of the lowest-level segment that was accessed on the most recent DL/I I/O call (root level is 01).
segmentName The name of the lowest-level segment that was accessed on the most recent DL/I I/O call.
statusCode The DL/I status code for the last DL/I I/O call.

Feedback