COBOL Manual for TNS and TNS/R Programs
Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
25-2
Adding DEFINEs
Preparation commands stay active until you override them, clear them, or end your
TACL session.
Adding DEFINEs
If your program assigns COBOL file names to DEFINE names, you must add DEFINEs
that have those DEFINE names before executing your program. You add a DEFINE
with the TACL command ADD DEFINE. Before you can add DEFINEs, you must set
your TACL process DEFMODE attribute to ON (the default is OFF) with the TACL
command:
SET DEFMODE ON
Topics:
•
DEFINE Names
•
DEFINE Attributes
You want the operating
environment to return control to
your program if a certain printer
is unavailable or out of paper.
Specify this preference (see Providing for an
Unavailable Printer).
Program declares external
switches in the SPECIAL-
NAMES paragraph and you want
some of them to be ON when
your program begins to execute.
Turn on switches (see Turning On External Switches
).
You want the program to call a
debugger, rather than ABEND,
after printing any fatal error
messages.
Specify this preference (see Requesting a Debugger
Instead of ABEND).
You want the program to do all of
its input-output in wait mode.
Specify this preference (see Specifying Waited Input-
Output).
You want to establish one or
more sets of preparation
commands for your program and
put a set into effect with a single
command.
Put each set of preparation commands into an OBEY
command file and execute the appropriate OBEY
command file (see Using OBEY Files to Prepare for
Execution).
You want to know what
preparation commands are
already active.
Find out what these commands are (see Finding Out
What Preparation Commands Are Already Active).
You want to change or clear
active preparation commands.
Clear commands (see Changing or Clearing Unwanted
Preparation Commands).
Table 25-1. Conditions Requiring Pre-Execution Preparation (page 2 of 2)
Condition Preparation Required Before Program Execution