CICS error-handling commands
The way that the EXEC CICS error-handling commands are supported in Java™ is described.
CICS® condition handling is integrated into the Java exception-handling architecture, as described in CICS exception handling in Java programs. The equivalent EXEC CICS command is supported in Java in the following ways:
- 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 that names CicsConditionException, if all CICS conditions are to be caught.
- IGNORE CONDITION
- This command is not relevant in Java applications.
- POP HANDLE and PUSH HANDLE
- These commands are not relevant in Java applications. The Java exceptions that are used to represent CICS ABENDs and conditions are caught by any catch block in scope.