COBOL Manual for TNS/E Programs (H06.03+)
Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS/E Programs—520347-003
25-5
Specifying a Default Input-Output Device
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.
If you want a default input-output device other than your home terminal, 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.
This command specifies the default input-output device \AKRON.$SLB.MAJ.ERRMSG:
PARAM EXECUTION-LOG \AKRON.$SLB.MAJ.ERRMSG
This command specifies the DEFINE name =ERRORS as the default input-output
device. You must add the DEFINE name =ERRORS before you execute the program.
PARAM EXECUTION-LOG =ERRORS
ADD DEFINE =ERRORS, FILE \AKRON.$SLB.MAJ.ERRMSG
This command causes all run-time messages to be discarded:
PARAM EXECUTION-LOG *










