CICS IGNORE CONDITION provides condition ignoring capabilities in CICS environments. It enables programs to ignore conditions, manage condition processing, and handle condition ignoring for selective condition handling and program flow control.
12345EXEC CICS IGNORE CONDITION [CONDITION(condition-name)] [RESP(response-code)] [RESP2(response-code-2)] END-EXEC.
Specifies the name of the condition to be ignored. This parameter identifies the specific condition for ignoring operations.
Specifies the response code variable to receive the operation result. This parameter provides error handling and status information.
Specifies the secondary response code variable for additional error information. This parameter provides extended error details when available.
IGNORE CONDITION suppresses error conditions such as file errors, data errors, and system errors for continued program execution.
The command supports end-of-file condition ignoring for handling file processing completion without interruption.
Data condition ignoring suppresses data validation errors, format errors, and data processing exceptions for data processing flexibility.
System condition ignoring suppresses system-level errors, resource limitations, and operational exceptions for system operation flexibility.
123456789101112131415161718192021WORKING-STORAGE SECTION. 01 CONDITION-NAME PIC X(16) VALUE 'ERROR'. 01 RESPONSE-CODE PIC S9(8) COMP. 01 RESPONSE-CODE-2 PIC S9(8) COMP. PROCEDURE DIVISION. EXEC CICS IGNORE CONDITION CONDITION(CONDITION-NAME) RESP(RESPONSE-CODE) RESP2(RESPONSE-CODE-2) END-EXEC IF RESPONSE-CODE = 0 DISPLAY 'Condition ignored successfully' DISPLAY 'Condition: ' CONDITION-NAME ELSE DISPLAY 'Error ignoring condition: ' RESPONSE-CODE END-IF. PERFORM PROCESS-DATA PERFORM CONTINUE-PROCESSING.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546WORKING-STORAGE SECTION. 01 CONDITION-NAME PIC X(16). 01 RESPONSE-CODE PIC S9(8) COMP. 01 RESPONSE-CODE-2 PIC S9(8) COMP. 01 IGNORE-COUNT PIC S9(8) COMP VALUE 0. PROCEDURE DIVISION. PERFORM IGNORE-FILE-ERRORS PERFORM IGNORE-DATA-ERRORS PERFORM IGNORE-SYSTEM-ERRORS. IGNORE-FILE-ERRORS. MOVE 'FILE-ERROR' TO CONDITION-NAME EXEC CICS IGNORE CONDITION CONDITION(CONDITION-NAME) RESP(RESPONSE-CODE) RESP2(RESPONSE-CODE-2) END-EXEC IF RESPONSE-CODE = 0 ADD 1 TO IGNORE-COUNT DISPLAY 'File errors ignored' END-IF. IGNORE-DATA-ERRORS. MOVE 'DATA-ERROR' TO CONDITION-NAME EXEC CICS IGNORE CONDITION CONDITION(CONDITION-NAME) RESP(RESPONSE-CODE) RESP2(RESPONSE-CODE-2) END-EXEC IF RESPONSE-CODE = 0 ADD 1 TO IGNORE-COUNT DISPLAY 'Data errors ignored' END-IF. IGNORE-SYSTEM-ERRORS. MOVE 'SYSTEM-ERROR' TO CONDITION-NAME EXEC CICS IGNORE CONDITION CONDITION(CONDITION-NAME) RESP(RESPONSE-CODE) RESP2(RESPONSE-CODE-2) END-EXEC IF RESPONSE-CODE = 0 ADD 1 TO IGNORE-COUNT DISPLAY 'System errors ignored' END-IF.
1234567891011121314151617181920212223242526272829303132333435WORKING-STORAGE SECTION. 01 CONDITION-NAME PIC X(16). 01 RESPONSE-CODE PIC S9(8) COMP. 01 RESPONSE-CODE-2 PIC S9(8) COMP. 01 PROCESSING-COUNT PIC S9(8) COMP VALUE 0. PROCEDURE DIVISION. PERFORM VARYING PROCESSING-COUNT FROM 1 BY 1 UNTIL PROCESSING-COUNT > 3 PERFORM BUILD-CONDITION-NAME PERFORM IGNORE-CONDITION END-PERFORM. BUILD-CONDITION-NAME. EVALUATE PROCESSING-COUNT WHEN 1 MOVE 'EOF' TO CONDITION-NAME WHEN 2 MOVE 'INVREQ' TO CONDITION-NAME WHEN 3 MOVE 'NOTFND' TO CONDITION-NAME END-EVALUATE. IGNORE-CONDITION. EXEC CICS IGNORE CONDITION CONDITION(CONDITION-NAME) RESP(RESPONSE-CODE) RESP2(RESPONSE-CODE-2) END-EXEC IF RESPONSE-CODE = 0 DISPLAY 'Condition ' CONDITION-NAME ' ignored successfully' ELSE DISPLAY 'Error ignoring condition ' CONDITION-NAME ': ' RESPONSE-CODE END-IF.
Successful condition ignoring. The condition has been successfully ignored and will not interrupt program execution.
Invalid condition name. The specified condition name is invalid or not supported.
Condition not ignorable. The specified condition cannot be ignored due to system requirements.
Ignore operation failed. The condition ignoring operation failed due to system conditions.
Ignore not available. The condition ignoring capability is not available in the current execution context.
IGNORE CONDITION efficiently suppresses conditions, but excessive ignoring may mask important errors and impact system reliability.
Proper condition management ensures appropriate ignoring and prevents masking of critical system conditions.
Error visibility should be maintained to ensure important conditions are not inadvertently ignored.
Always check response codes and handle errors appropriately, especially for condition validation and ignoring operations.
Use selective condition ignoring to suppress only non-critical conditions while maintaining error visibility for important conditions.
Analyze conditions carefully before ignoring to ensure that critical errors are not masked and system integrity is maintained.
Implement appropriate ignoring strategies that balance program flexibility with system reliability and error visibility.
Imagine you're playing a game and you don't want to be bothered by certain sounds. CICS IGNORE CONDITION is like putting on headphones to ignore those sounds so you can keep playing.
The condition name is like the name of the sound you want to ignore (like "loud music"). When you ignore it, you won't hear that sound anymore, so you can focus on your game.
Just like you need to be careful not to ignore important sounds (like someone calling your name), the program needs to be careful not to ignore important errors.
Write a program that uses IGNORE CONDITION to suppress a specific condition and verify the ignoring was successful.
Create a program that ignores multiple types of conditions (file errors, data errors, system errors) with appropriate validation.
Implement a condition management system that selectively ignores non-critical conditions while maintaining error visibility for important conditions.
Understanding CICS error handling and recovery procedures
Learning about CICS condition management and processing
Understanding CICS program control and flow management
Learning about CICS error suppression and condition ignoring