The termination behavior of the COBOL2000 compiler depends on
the class of any errors detected in the compilation unit and
whether the compiler itself executes without error.
This behavior is particularly significant when the COBOL2000 compiler is called from within a procedure or is monitored by monitoring job variables.
The following table provides an overview of the possible events, their impact on the further course of the procedure, and the contents of the return code indicator of the monitoring job variable:
Error | Termination | Dump | Return code indicator in monitoring | Trigger spin-off |
No error | Normal | No | 0000 | No |
Error class F | Normal | No | 0001 | |
Error class I | Normal | No | 0001 | |
Error class 0 | Normal | No | 1002 | |
Error class 1 | Normal | No | 1003 | |
Error class 2 | Normal | No | 2004 | No |
Error class 3 | Norma | No | 2005 | Yes |
Compiler error | Abnormal | Yes | 3006 |
Table 4: Termination behavior of the compiler
1) | When a spin-off is triggered, all subsequent commands are ignored with the exception of the SET-JOB-STEP, EXIT-JOB, LOGOFF, CANCEL-PROCEDURE, END-PROCEDURE and EXIT-PROCEDURE commands. The SET-JOB-STEP command terminates the spin-off, and processing is continued with the next command. |