The
COBOL language constructs that cause the enclave to terminate
are:
- STOP RUN
COBOL's STOP RUN is equivalent to the C++ exit() function. If you code a COBOL STOP RUN statement, the T_I_S
(Termination Imminent Due to STOP) condition is raised. After T_I_S
has been processed and all user code has been removed from the stack,
the C++ atexit list is honored.
- Call to ILBOABN0 or CEE3ABD
Calling ILBOABN0 or CEE3ABD causes
T_I_U to be signaled. Condition handlers are given a chance to handle
the abend. If the abend remains unhandled, normal Language Environment termination
activities occur. For example, the C++ atexit list is honored
and the Language Environment assembler user exit gains control.
User-written
condition handlers written in COBOL must be compiled with Enterprise COBOL for z/OS, COBOL for OS/390 & VM, COBOL for MVS & VM
or COBOL/370.