COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-52
Categories of Compiler Directives
HIGHREQUESTERS
3
Allows the program to run as a server that
communicates with requesters running at
high PINs (greater than 255)
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
3
Tells the compiler whether to declare
SQL/MP data structures in the Working-
Storage Section (user data segment) or the
Extended-Storage Section (extended data
segment)
SUBTYPE
1
Specifies that the program runs as a
process with the designated subtype
number
Table 11-18. 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-17. Miscellaneous Control Directives (page 2 of 2)
Directive(s) Default Action
1. These directives are not available in the OSS environment.
2. The NMCOBOL 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. The NMCOBOL compiler ignores and issues warnings for these directives.