COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-36
Categories of Compiler Directives
HIGHREQUESTERS
1
Ignored (warning issued)
MAIN
Specifies the main program in an input
stream
NONSTOP
1
Specifies program is to run as a process
pair
PERFORM-TRACE
Provides additional information if run-time
error 148 occurs.
RUNNAMED
Specifies that the run unit is to be run as a
named process
SAVE
1
Specifies which initialization message
information is saved
SQL and NOSQL
NOSQL
3
Tells the compiler to expect SQL/MP
statements in the compilation unit
SQLMEM
1
Ignored (warning issued)
SUBTYPE
1
Specifies that the program runs as a
process with the designated subtype
number
Table 11-13. ENDUNIT Directive
Directive Action
ENDUNIT
Marks the end of the Procedure Division in a source file that
contains multiple, separately compiled COBOL programs.
*
* This directive must be the last or the only directive on its line. If any other directive appears on the line after it,
the compiler reports an error and ignores the additional directives.
Note. In the list of directives, “Default:” identifies the default for the compiler directive itself,
not for its optional parameter(s). This default applies if a program does not contain the compiler
directive at all.
Table 11-12. Miscellaneous Control Directives (page 2 of 2)
Directive(s) Default Action
1. These directives are not available in the OSS environment.
2. The compiler accepts this directive with the COMMON option (the default for this compiler), reports an error for
the OLD option, and issues a warning for the LIBRARY option.
3. Thecompiler ignores and issues warnings for these directives.










