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-10
Starting an HP COBOL Program From a TACL
Prompt
Running the New Process in the Background
Run-Time Errors
Starting an HP COBOL Program From a TACL Prompt
To start an HP COBOL program from the TACL prompt, use the TACL command RUN.
In the simplest case, the program retrieves input for unqualified ACCEPT statements
from your home terminal and displays run-time diagnostic messages and the output of
unqualified DISPLAY statements on your home terminal. If the file ID of your loadfile is
$SYSTEM3.COBOL85.PROG1, you can execute your program with this command:
RUN $SYSTEM3.COBOL85.PROG1
You can omit the keyword RUN and the subvolume that your program is on if a default
subvolume is specified on #PMSEARCHLIST. To specify $VOLUME.SUBVOL as a
default on #PMSEARCHLIST, execute this TACL command before starting your
program:
#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.
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.