COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-32
Categories of Compiler Directives
Table 11-7. 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-8. 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
Table 11-9. Listing Control Directives (page 1 of 2)
Directive(s) Default Action
CODE and NOCODE
1
NOCODE Ignored (warning issued)
CROSSREF and
NCROSSREF
1
NOCROSSREF Ignored (warning issued)
For a cross-reference listing, use the
enoft utility with the XREFPROC flag
(see the enoft Manual ).
DIAGNOSE-74 and
NODIAGNOSE-74
NODIAGNOSE-74 Enables or suppresses warnings about
statements that might behave differently
for HP COBOL and COBOL 74
DIAGNOSE-85 and
NODIAGNOSE-85
NODIAGNOSE-85 Enables or suppresses warnings about
source constructs that might behave
differently for COBOL85 compiler and
ECOBOL compiler
1. Described in the COBOL Manual for TNS and TNS/R Programs










