COBOL Manual for TNS and TNS/R Programs

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
22-22
Improving Compilation Speed
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> COBOL85 /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
Either or both of the processors that the
COBOL85, BINSERV, and SYMSERV
processes would use by default are very
busy.*
Use the PARAM SAMECPU command (see
Processors the Compilation Processes Use
).
The volumes on which COBOL85,
BINSERV, and SYMSERV would create
their temporary files by default are accessed
often.*
Use the PARAM SWAPVOL command (see
Volume(s) for Temporary Files
).
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).
* Applies only to the COBOL85 compiler.