COBOL Manual for TNS and TNS/R Programs
Compiler Directives
HP COBOL Manual for TNS and TNS/R Programs—522555-006
36-26
MAIN
MAIN
MAP and NOMAP
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
Default: NOMAP
Dependencies: MAP works only if LIST is active and SUPPRESS is not.
Scope: The last MAP or NOMAP applies.
Dependencies: MAP works only if LIST is active and SUPPRESS is not.
References:
•
LIST and NOLIST
•
SUPPRESS and NOSUPPRESS
MAIN program-name
VST294.vsd
MAP
NOMAP
VST295.vsd