COBOL Manual for TNS/E Programs (H06.03+)

Program Compilation
HP COBOL Manual for TNS/E Programs520347-003
11-21
Completion Codes
Completion Codes
The compiler reports an appropriate completion code when it terminates execution. An
HP COBOL program can set its own completion code at termination by calling the
COBOL_COMPLETION_ routine.
Running the Compiler
This topic explains how to run the compiler, including:
PARAM Commands
Predefined SEARCH DEFINEs
Starting a Compilation
Terminating a Compilation
Table 11-4. Completion Codes
Code Termination Explanation
0 Normal No diagnostic messages were issued. The object file is complete
and valid (unless a SYNTAX directive suppressed its creation).
1 Normal At least one compiler warning occurred. The object file is complete
and presumed to be valid (unless a SYNTAX directive suppressed
its creation).
2 Normal At least one compiler error occurred. No object file was created.
3 Abnormal The compiler exhausted one of its internal resources (such as
symbol table space) or it was refused some external service (such
as access to a file) before it completed its task. No object file was
created.
5 Abnormal During internal consistency checking, the compiler discovered a
logic error, or else one of the compilers server processes reported a
failure and was terminated abnormally. No object file was created.
8 Normal At least one compiler warning occurred. The name specified for the
target (object) file could not be used, so another name was chosen.
This name is reported in the summary. The object file is complete
and presumed to be valid.