COBOL Manual for TNS/E Programs (H06.03+)
Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS/E Programs—520347-003
25-12
Naming the New Process
This command specifies the default input device INFILE for the program PROG1, no
default output device, and the home terminal $TE1.#E02. The default output device will
be the home terminal, $TE1.#E02.
PROG1 /IN INFILE, TERM $TE1.#E02/
To find the name of a terminal, use the TACL command WHO. Example:
223> WHO
Home terminal: $TE1.#E02
...
Naming the New Process
If your HP COBOL program is to run as a process pair, it must have a process name. If
your program is not to run as a process pair, a process name is optional but useful: it
allows you to stop the process by name, which is easier than determining its processor
and Process Identification Number (PIN) and then stopping it with those.
You verify that your program has a process name in either of these two ways:
•
Include the NAME Option in the RUN command.
•
Compile the program with the RUNNAMED Directive.
NAME Option
The NAME option of the RUN command verifies that the program is run as a named
process. You can specify the process name or not. If you do, it must begin with a dollar
sign ($). (For the syntax of a process name, see the Guardian Programmer’s Guide.) If
you do not specify the process name, the operating environment assigns a timestamp
process name to the new process.
This command assigns the process name “$PROG1” to the process created when you
run $VOL1.SUB2.PROG1:
RUN $VOL1.SUB2.PROG1 /NAME $PROG1/
This command causes the operating environment to assign a timestamp process name
to the process created when you run $VOL1.SUB2.PROG1:
RUN $VOL1.SUB2.PROG1 /NAME/
This command runs the program $VOL1.SUB2.PROG1 as an unnamed process
(unless you specified RUNNAMED in the object file).
RUN $VOL1.SUB2.PROG1










