COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
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.
Table 73 Completion Codes
ExplanationTerminationCode
No diagnostic messages were issued. The object file is complete and valid (unless
a SYNTAX directive suppressed its creation).
Normal0
At least one compiler warning occurred. The object file is complete and presumed
to be valid (unless a SYNTAX directive suppressed its creation).
Normal1
At least one compiler error occurred. No object file was created.Normal2
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.
Abnormal3
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.
Abnormal5
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.
Normal8
Running the Compiler
This topic explains how to run the compiler, including:
• PARAM Commands
• Predefined SEARCH DEFINEs
• Starting a Compilation
• Terminating a Compilation
PARAM Commands
If you want to use a PARAM command, you must enter it before you give the command to run the
compiler. When the compiler terminates execution, it reports an appropriate completion code.
NOTE: PARAM commands for files in a user library are ignored.
Table 74 PARAM Commands Accepted by Compiler
DescriptionCommand
Specifies the volume on which the ECOBOL compiler and its processes will create
temporary files.
PARAM SWAPVOL
Specifies the number of 256 KB blocks that the compiler needs for its symbol
dictionary.
PARAM SYMBOL-BLOCKS
The number of lines allowed for each SQL/MP statement is 500 times the number
specified by PARAM SYMBOL-BLOCKS.
PARAM SWAPVOL
The PARAM SWAPVOL command specifies the volume on which the compiler and its processes
will create temporary files (if possible). It does not determine where the operating system creates
the compiler’s own swap file—the Kernel-Managed Swap Facility (KMSF) does that. For more
information, see the Kernel-Managed Swap Facility (KMSF) Manual.
Running the Compiler 527










