Ignore condition is used when we want no action to be taken if a particular abend or error happens which is mentioned inside the Ignore Condition. Following is the syntax of Ignore Condition −
EXEC CICS IGNORE CONDITION CONDITION(Label) END-EXEC.
The following example shows how to use Ignore Condition in a program. It will not abend the program even if the program throws length error as we have mentioned LENGERR inside the Ignore condition.
IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. PROCEDURE DIVISION. EXEC CICS IGNORE CONDITION LENGERR END-EXEC.