COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-47
Categories of Compiler Directives
Categories of Compiler Directives
Compiler directives fall into these categories:
Table 11-12, Source Text Manipulation Directives, on page 11-47
Table 11-13, Input Format Control Directives, on page 11-47
Table 11-14, Listing Control Directives, on page 11-48
Table 11-15, Code-Generation Control Directives, on page 11-49
Table 11-16, Resolution and Binding Control Directives, on page 11-51
Table 11-17, Miscellaneous Control Directives, on page 11-51
Table 11-18, ENDUNIT Directive, on page 11-52
Table 11-12. Source Text Manipulation Directives
Directive(s) Default Action
SECTION
Marks beginning of portion of text in
an EDIT file, which compiler reads in
response to COPY statements and
SOURCE directives
SHOWFILE and NOSHOWFILE
NOSHOWFILE Switches identification of source file in
compiler listing on or off
SOURCE
* Reads an entire EDIT file, or one or
more sections of an EDIT file
SETTOG
* Turns toggles on
RESETTOG
* Turns toggles off
IF and IFNOT
* Enables or suppresses compilation of
subsequent lines if a specified toggle
has been set; disables it otherwise
ENDIF
* Marks end of toggle block
* Must be the last directive on its line.
Table 11-13. Input Format Control Directives
Directive Default Action
COLUMNS
Specifies logical length of source lines when TANDEM directive
is present
TANDEM
TANDEM Specifies Tandem source format
ANSI
TANDEM Specifies ANSI source format