CICS error-handling commands

CICS condition handling is integrated into the Java exception architecture as described above. The way that the equivalent “EXEC CICS” command is supported in Java is described below:

HANDLE ABEND
To handle an ABEND generated by a program in any CICS-supported language, use a Java try-catch statement, with AbendException appearing in a catch clause.
HANDLE CONDITION
To handle a specific condition, such as PGMIDERR, use a catch clause that names the appropriate exception—in this case InvalidProgramException. Alternatively, use a catch clause naming CicsConditionException, if all CICS conditions are to be caught.
IGNORE CONDITION
This command is not relevant in Java applications.
POP and PUSH HANDLE
These commands are not relevant in Java applications. The Java exceptions used to represent CICS ABENDs and conditions are caught by any catch block in scope.