COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
#SET #PMSEARCHLIST #DEFAULTS $VOLUME.SUBVOL $SYSTEM.SYSTEM
Then you can start the program whose file ID is $VOLUME.SUBVOL.PROG1 from the TACL prompt
with this command:
PROG1
The RUN command has many options, some of which allow you to specify these program attributes:
• Default input and output devices
• Home terminal
• Debugger
• Process name (required if program is to run as a process pair)
• Ability to run in the background
For more information about the RUN command and its options, see the TACL Reference Manual.
To start an HP COBOL program from another HP COBOL program, see Initiating a Process From
an HP COBOL Program (page 916).
Specifying Default Input and Output Devices
If you want your program to retrieve input for unqualified ACCEPT statements from a device other
than your home terminal, you must specify that device.
If you want your program to display run-time diagnostic messages and output from unqualified
DISPLAY statements to a device other than your home terminal, you must specify that device.
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.
IN and If you want separate default input and output devices, you must specify them with the 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.
826 Executing and Debugging HP COBOL Programs










