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-5
Overriding the NONSTOP Directive
Overriding the NONSTOP Directive
If your program was compiled with a NONSTOP directive (which causes it to execute
as a process pair), and you want to override the NONSTOP directive (until you have
debugged the program, for example), you must execute the command PARAM
NONSTOP OFF before executing your program. The PARAM NONSTOP OFF
command is:
PARAM NONSTOP OFF
You can use a single PARAM command to do several things; for example, this PARAM
command overrides the NONSTOP directive and enables USE DEBUGGING
SECTIONS:
PARAM NONSTOP OFF, DEBUG ON
For another example of a PARAM command that does several things, see Specifying
Waited Input-Output.
Specifying a Default Input-Output Device
First, verify that you want to specify a default input-output device. The alternative is to
specify separate default input and output devices.
The default input device (or the default input-output device) provides input to
unqualified ACCEPT statements (those without FROM clauses).
The default output device (or the default input-output device) displays run-time
diagnostic messages and output from unqualified DISPLAY statements (those without
UPON clauses).
If a program has unqualified ACCEPT statements, the default input device (or the
default input-output device) must be a disk file, terminal, or process. If a program has
unqualified DISPLAY statements, the default output device (or the default input-output
device) must be a disk file, terminal, process, or printer. If a program has both
unqualified ACCEPT statements and unqualified DISPLAY statements, the default
input-output device must be a terminal or process.
If you want separate default input and output devices, do not specify a default input-
output device. See Specifying Default Input and Output Devices.
In the non-CRE environment, if you want a default input-output device other than your
home terminal, specify it before executing your program with the command PARAM
EXECUTION-LOG. The new default input-output device can be a system file name, a
DEFINE name, or an asterisk (*). In the CRE, specify the default input-output device as
explained in the CRE Programmer’s Guide.
If default input-output device is a system file name, the file must exist before you
execute the program. If the default input-output device is a DEFINE name, you must
add it before you execute the program (see Adding DEFINEs). If default input-output
device is an asterisk, all run-time messages are discarded.