COBOL Manual for TNS and TNS/R Programs
Program Execution
HP COBOL Manual for TNS and TNS/R Programs—522555-006
12-9
PARAM Command
PARAM Command
The PARAM command creates a PARAM message in your current environment.
When a process compiled by the compiler begins to execute, the run-time routines
automatically request the PARAM message and use its contents to set the options
defined for HP COBOL. Application code within the program can also use the SMU
procedures to copy the PARAM message into the Working-Storage area and examine
it for additional parameters that apply to the program. Further, the program can
manipulate the saved parameters and cause them to be passed to any processes it
initiates using the CREATEPROCESS or CLU_PROCESS_CREATE_ routine.
21> == FD OUTPUT-FILE is the
22>ASSIGN OUTPUT-FILE, #OUT == file named in the
23> == OUT option.
24>ASSIGN RECEIVE-FILE, $RECEIVE
25> == Run the loadfile,
26> == designating NEWINP as
27> == the IN file (thus
28>RUN PROG3 /IN NEWINP,OUT NEWOUT/ == equating it with the
29> == fd-name INPUT-FILE)
30> == and NEWOUT as the OUT
31> == file (thus equating it
32> == with the fd-name
33> == OUTPUT-FILE).
Note. PARAM commands for files in a user library are ignored.
Example 12-3. ASSIGN Command With Special COBOL Names (page 2 of 2)
name-value-pair
PARAM
,
name-value-pair
VST338.vsd