TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

CICS IGNORE Condition


The IGNORE CONDITION command causes no action to be taken if the specified condition occurs in the program. The control will be passed on to the instruction following the command which is encountered the exceptional condition.

The syntax is same as HANDLE CONDITION but it causes no action to be taken if the specified condition occurs in the program. The control will be returned to the next instruction following the command, which encountered the exceptional condition. It will be effective from the place where it appears to the end of the program or until any HANDLE condition overrides it.

Maximum 12 conditions can be coded in one IGNORE CONDITION statement.

Syntax:

EXEC CICS IGNORE CONDITION
        condition
        (condition)
END-EXEC.

The “condition” indicates an exceptional condition. At the most, only 16 conditions are allowed in the same command.


IGNORE CONDITION - SCOPE

  • Applies only to the program in which it is specified

  • Active while the program is being executed

  • Active until a HANDLE CONDITION command for the same condition is encountered


Example:

EXEC CICS IGNORE CONDITION
    LENGERR
END-EXEC.

EXEC CICS RECEIVE
    INTO (_______)
    LENGTH (____)
END-EXEC.

At the execution of the RECEIVE command, if LENGERR exception occurs, the condition will be ignored, and the control will be passed to the statement after the RECEIVE command.


If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal