COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-33
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 either
the COBOL85^COMPLETION routine or 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-9. 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 or Binder 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 or Binder 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 compiler’s server processes reported a
failure and was terminated abnormally. No object file was created.
8 Normal At least one compiler or Binder 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.