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

Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS/E Programs520347-003
25-11
Specifying the Home Terminal
If you want separate default input and output devices, you must specify them with the
IN and OUT options of the RUN command and must not use a PARAM EXECUTION-
LOG command (because the PARAM EXECUTION-LOG command takes precedence
over the IN and OUT options of the RUN command).
The default input and output devices can be system files (including disk files) or
DEFINE names that you have already associated with system files. The default input
file must be a terminal, disk file, or process; the default output file must be a terminal,
disk file, line printer, or process.
This command specifies the default input device INFILE and the default output device
OUTFILE for the program PROG1. (Assume that PROG1, INFILE, and OUTFILE are
on the default subvolume.)
PROG1 /IN INFILE, OUT OUTFILE/
This command specifies the default input device INFILE for the program PROG1 but
no default output device. The default output device will be the home terminal.
PROG1 /IN INFILE/
This command specifies the default output device OUTFILE for the program PROG1
but no default input device. The default input device will be the home terminal.
PROG1 /OUT OUTFILE/
Specifying the Home Terminal
By default, the home terminal for your executing HP COBOL program is the same as
the home terminal for your TACL process. This is a problem if all of these conditions
are true:
The default input-output device, default input device, or default output device is the
home terminal.
The TACL process has control of the home terminal, causing HP COBOL run-time
routines to wait for the terminal to become available.
One of the waiting routines is a Pathway server.
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/