C to COBOL condition handling

This section provides two scenarios of condition handling behavior in a C to COBOL ILC application. If an exception occurs in a C routine, the set of possible actions is as described in Exception occurs in C. If an exception occurs in a COBOL program, the set of possible actions is as described in Exception occurs in COBOL.

Keep in mind that some conditions can be handled only by the HLL of the routine in which the exception occurred. For example, in a COBOL program, a statement can have a clause that adds condition handling to a verb, such as the ON SIZE ERROR clause of a COBOL DIVIDE verb (which includes the logical equivalent of a divide-by-zero condition). This type of condition is handled completely within COBOL.

For a detailed description of Language Environment condition handling, see z/OS Language Environment Programming Guide.