Using the IGNORE CONDITION command you can request CICS to ignore occurrences of specified exception conditions. When one of the specified conditions occurs, CICS returns control to the application program at the instruction following the command that caused the condition to occur. The request by the IGNORE CONDITION command is valid until the next HANDLE-CONDITION command for the same condition. The syntax of the IGNORE CONDITION command is given below:


If a MAPFAIL condition occurs on the RECEIVE MAP command control is returned to the instruction immediately following the RECEIVE MAP command. At that point, the program will examine the Attention Identifier (AID) of the EIB to determine if the user pressed the CLEAR key rather than entering data on the screen. Thus the program can check MAPFAIL within the straight-line flow of program execution, thus maintaining the structured programming conventions. In addition error-handling logic for this RECEIVE MAP command is coded immediately after the command, which makes the debugging easier.

With ignore condition command you can selectively disable exceptional conditions. Then, you test for those conditions after each command by examining fields in the EIB instead of using the HANDLE CONDITION command. If you use this technique, however, realize that most of the conditions can be raised by more than one command. So if you use an IGNORE CONDITION command for a particular condition, you will have to test the EIB for that condition after every command that can possibly raise that condition. Otherwise, results can be confusing and disastrous.

An alternative to the IGNORE CONDITION command is the NOHANDLE and RESP options. These options can be coded in any CICS command and they will suspend exceptional condition handling for a single command. But after the execution of the command you must test for exceptional conditions.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM Mainframe Topics