Examples with a registered user-written condition handler
This section contains C, C++, COBOL, PL/I, and
assembler examples in which user-written condition handlers are registered
to respond to specific conditions that might occur in an application.
- In Handling a divide-by-zero condition in C, C++, COBOL, or PL/I, C, C++, COBOL, and PL/I call CEEHDLR and CEEMRCR to handle a divide-by-zero condition.
- In Handling an out-of-storage condition in C, C++, COBOL, or PL/I, C, C++, COBOL, and PL/I call CEEHDLR and CEEMRCR to handle an out-of-storage condition.
- In Signaling and handling a condition in a C/C++ routine, C or C++ call CEEHDLR CEEGQDT, and CEEMRCR to respond to a signaled condition.
- In Handling a divide-by-zero condition in a COBOL program, COBOL calls CEEHDLR, CEE3GRN, and CEEMOUT to respond to the significance condition (which was enabled using CEE3SPM).
- In Handling a program check in an assembler routine, assembler calls CEEHDLR to register a condition handler that responds to a program check.