COBOL Manual for TNS/E Programs (H06.03+)

Compiler Directives
HP COBOL Manual for TNS/E Programs520347-003
36-15
LIST and NOLIST
LIST and NOLIST
MAIN
Default: LIST
Placement: Anywhere
Scope: Applies until overridden by its opposite
Dependencies: SUPPRESS overrides LIST (and therefore CODE, CROSSREF, ICODE,
LMAP, MAP, SHOWCOPY, and SQL).
NOLIST suppresses INNERLIST.
References:
SUPPRESS and NOSUPPRESS
INNERLIST and NOINNERLIST
MAP and NOMAP
SHOWCOPY and NOSHOWCOPY
SQL and NOSQL
Note. Put this directive before the Identification Division header of the first program unit in the
compilation unit.
Default: Every program unit that does not have a Linkage Section is compiled as
a main program. If more than one program unit of a compilation unit
qualifies as a main program, the compiler reports this as an error,
compiles the first qualifying program unit as the main program, and
produces multiple object files.
Placement: Before the Identification Division header of the first program unit in the
compilation unit
Scope: Applies to the program that contains it
Dependencies: None
LIST
NOLIST
VST291.vsd
MAIN program-name
VST294.vsd