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

Program Compilation
HP COBOL Manual for TNS/E Programs520347-003
11-43
COMPILE
COMPILE
COMPILE
compiles the program unit and includes its code and data blocks in the target file
being created.
SYNTAX
checks the syntax of the source text. No target file is produced.
CONSULT and NOCONSULT
CONSULT
adds the files that object-name-list specifies to the tertiary search list. (See
Tertiary Search List.)
Default: COMPILE
Placement: Outside the boundaries of a separately compiled program; that is, not
between the Identification Division header of a separately compiled
program and its end, which is marked by one of:
The corresponding END PROGRAM statement
ENDUNIT
The end of the source file
Scope: The last COMPILE or SYNTAX in the compilation unit applies to the
entire compilation unit.
Dependencies: None
References: ENDUNIT
Note. The compiler ignores and issues a warning for the NOCONSULT directive.
COMPILE
SYNTAX
VST272.vsd
object-name-list
object-name-list
CONSULT
NOCONSULT
( )
VST273.vsd