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

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs520347-003
22-18
Improving Compilation Speed
Compiler Space Allocation
The PARAM SYMBOL-BLOCKS command specifies how much space the compiler
allocates for its symbol dictionary and embedded SQL/MP statements—see PARAM
SYMBOL-BLOCKS.
If you have given the command PARAM SYMBOL-BLOCKS and decide that you do
not want it, you can clear it before running the compiler with the CLEAR command; for
example:
98> PARAM SYMBOL-BLOCKS 1
99> CLEAR PARAM SYMBOL-BLOCKS
100> ECOBOL /IN XYZ, OUT $SPX/ XYZOBJ
If you have given several PARAM commands, you can clear all of them before running
the compiler with the command CLEAR ALL PARAM; for example:
101> PARAM SAMECPU 7
102> PARAM SWAPVOL $COBVOL
103> PARAM SYMBOL-BLOCKS 1
104> CLEAR ALL PARAM
105> ECOBOL /IN XYZ, OUT $SPX/ XYZOBJ
Improving Compilation Speed
Under these conditions, these actions can improve compilation speed:
Launching Compilations to Run Unattended
You can launch a compilation to run unattended with NetBatch, a job management
system. For details, see the NetBatch Manual.
Using COPY and SOURCE Libraries
A COPY or SOURCE library is an EDIT file that contains one or more blocks of text.
Each block is preceded by a SECTION directive that specifies its name and (optionally)
its reference format (ANSI or Tandem, the default being Tandem). The section name in
the SECTION directive is the one to use in a COPY statement or SOURCE directive.
Condition Action
The compilation summary shows that the
maximum symbol table size is less than
256 KB.
Use the PARAM SYMBOL-BLOCKS 1
command (see Compiler Space Allocation
).
You only want the compiler to check the
program’s syntax (not generate object
code).
Use the SYNTAX directive (see Specifying
Compiler Directives).