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

If the suspended Pathway server’s requester is also suspended, the performance of the Pathway
application is degraded.
If your program has the previously described problem, specify a different home terminal for your
ECOBOL process with the TERM option of the RUN command. Verify that the new home terminal
is available.
This command specifies the home terminal $TE1.#E02 for the program PROG1. Because the default
input and output devices are not specified, they will be the home terminal, $TE1.#E02, unless an
earlier PARAM EXECUTION-LOG command specified a default input-output device.
PROG1 /TERM $TE1.#E02/
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
RUNNAMED Directive
If you compile your program with the RUNNAMED directive, the operating environment assigns
it a timestamp process name when you execute it. You do not need to include the NAME option
in the RUN command (but you can, if you want to give it a specific name).
The RUNNAMED directive works only if the RUNNABLE directive is active.
Executing an HP COBOL Program 827