COBOL Manual for TNS and TNS/R Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
25-1
25
Executing and Debugging
HP COBOL Programs
After you have compiled and bound your program, you can execute and, if necessary,
debug it.
Topics:
•
Preparing to Execute an HP COBOL Program
•
Executing an HP COBOL Program
•
Getting a Program to Enter Debugging Mode
Preparing to Execute an HP COBOL Program
If your program has certain characteristics, or if you want certain things from a
particular execution of your program, you must prepare appropriately before you
execute your program.
Note. This section applies to the Guardian environment. If you are compiling HP COBOL
programs in the OSS environment, see Running HP COBOL Programs.
Table 25-1. Conditions Requiring Pre-Execution Preparation (page 1 of 2)
Condition Preparation Required Before Program Execution
Program assigns HP COBOL file
names to DEFINE names.
Add DEFINEs that have those DEFINE names
(see
Adding DEFINEs).
Program assigns HP COBOL file
names to system file names and
you want to override those
assignments.
Override those assignments (see Overriding File
Assignments Made at Compilation Time).
Program creates some of the
files it uses and you want to
specify their characteristics.
Specify their characteristics (see Specifying
Characteristics of Files That a Program Creates).
Program has a DEBUGGING
MODE clause and debugging
declaratives.
Enable the debugging declaratives (see Enabling
Debugging Declaratives).
Program was compiled with a
NONSTOP directive that you
want to override.
Override the NONSTOP directive (see Overriding the
NONSTOP Directive).
You do not want your home
terminal to be the default input-
output device.
Specify the default input-output device that you want
(see Specifying a Default Input-Output Device
).