COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-61
COMPILE
Suppose the compiler presents these code-space blocks to BINSERV in this order:
Because no block exceeds 64 KB, none can span the 64 KB boundary. When they are
bound with NOCOMPACT active, they occupy 116 KB. Each nonspace character
below represents 2 KB:
AAAAAAAAAABBBBBBBBBBBB---------CCCCCCCCCCCCCCCCDDDDEEEEE--
^10 ^22 ^32 ^48 ^52 ^58
When the blocks are bound with COMPACT active, they fit into 48K words:
AAAAAAAAAABBBBBBBBBBBBDDDDEEEEE-CCCCCCCCCCCCCCCC-
^10 ^22 ^26 ^32 ^48
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.
Program A Program B Program C Program D Program E
20 KB 24 KB 32 KB 8 KB 10 KB
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
COMPILE
SYNTAX
VST272.vsd