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-20
Changing the Compilation Environment
Changing the Compilation Environment
You can change these aspects of the compilation environment:
Processors the Compilation Processes Use
Volume(s) for Temporary Files
Compiler Space Allocation
Processors the Compilation Processes Use
Although program compilation is a single-step process from the users viewpoint, a
COBOL85 compilation consists of three processes:
The compilation environment is the environment in which the COBOL85, BINSERV,
and SYMSERV processes run. By default, COBOL85 and BINSERV run in the same
processor, and SYMSERV runs in the processor with the next higher number (for
example, if COBOL85 and BINSERV run in processor 7, then SYMSERV runs in
processor 8). If there is no processor with the next higher number, then SYMSERV
runs in the processor with the lowest number.
The PARAM SAMECPU command causes COBOL85, BINSERV, and SYMSERV to
run in the same processor. Using PARAM SAMECPU can improve compilation speed if
either or both of the processors that the compilation would use by default are very
busy. The processors that the compilation would use by default are determined by the
TACL option CPU, which is explained in the Guardian User’s Guide.
The PARAM SAMECPU command requires a dummy-value parameter, which must
be a nonzero value. dummy-value does not determine the processor; like the default
processor, this processor is determined by the TACL option CPU.
In this example, dummy-value is 7. The processes COBOL85, BINSERV, and
SYMSERV will run in the same processor, but it will not necessarily be processor 7.
91> PARAM SAMECPU 7
92> COBOL85 /IN XYZ, OUT $SPX/ XYZOBJ
Note. This topic applies only to the COBOL85 compiler.
Process Description
COBOL85 Reads the source program (processing any COPY statements and
SOURCE directives), produces listings, and generates object code for
binding
BINSERV Binds object code and generates Binder listings
SYMSERV Builds a symbol table that a symbolic debugger, CROSSREF directive, and
Crossref utility can use