COBOL Manual for TNS and TNS/R Programs

Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
25-11
Specifying the Home Terminal
If you want the default input device to be the same as the default output device, you
can specify a default input-output device with a PARAM EXECUTION-LOG command
before you execute your program (see Specifying a Default Input-Output Device) and
ignore the remainder of this topic.
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 COBOL85 or NMCOBOL process with the TERM option of the RUN
command. Verify that the new home terminal is available.