COBOL Manual for TNS and TNS/R Programs
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
22-40
Understanding and Controlling the Compiler Listing
Compiler directives also allow you to:
•
Request different or additional load maps
(see Load Maps)
•
Suppress parts of the compiler listing
(see Table 22-1)
The minimum compiler listing, produced when you compile a program with the
SUPPRESS directive, includes only a banner, any diagnostics and the source lines
that caused them, and a summary.
To discard the COBOL85 compiler listing entirely—including any diagnostics—specify
the RUN command’s OUT option with no file name; for example:
17> COBOL85 /IN PERFECT, OUT/
(The NMCOBOL compiler does not accept an empty OUT file.)
When you compile several separately compiled programs at once (each of which could
include nested programs), the listing includes one banner, one set of load maps, and
one summary. Between the banner and the first load map, the listing includes a source
program listing, symbol table, octal code listing,symbolic code listing, and cross-
reference listing for each program that requested them (by default or directive).
In Table 22-2, the compiler listing parts are in the order in which they appear in the
compiler listing.
Note. The NMCOBOL compiler does not produce an octal code listing or a cross-reference
listing. To display a native object file, use the noft utility. To produce a cross-reference listing
for a native program, use the noft utility with the XREFPROC flag. (See the noft Manual.)
Table 22-1. Compiler Listing Parts and the Directives That Control
Them (page1of2)
Compiler Listing Part Directive That Lists Part Directives That Suppress Part
Compilation banner None—always listed None
Source program listing LIST (default) NOLIST or SUPPRESS
COPY statements SHOWCOPY (default) NOSHOWCOPY, NOLIST, or
SUPPRESS
Diagnostic messages
1
WARN (default) NOWARN for warning messages,
none for error and failure
messages
1. Included in source program listing
2. If an object program was produced
3. NMCOBOL compiler ignores this directive
4. COBOL85 compiler does not recognize this directive