COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
(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 *
Providing for an Unavailable Printer
If you want the operating environment to return control to your program if a certain printer is
unavailable or out of paper, you must execute a PARAM PRINTER-CONTROL command before
executing your program.
This command specifies that control is to return to the program if the printer assigned to THE-PRINTER
is unavailable or out of paper:
PARAM PRINTER-CONTROL THE-PRINTER
Turning On External Switches
If your program declares external switches in the SPECIAL-NAMES paragraph and you want any
of them to be in the ON position when your program begins to execute, you must turn them on
with PARAM SWITCH-nn commands before executing your program. You can turn on several
switches with a single PARAM SWITCH-nn command or use multiple PARAM SWITCH-nn
commands.
This command turns on SWITCH-1, SWITCH-4, and SWITCH-15:
PARAM SWITCH-1 ON, SWITCH-4 ON, SWITCH-15 ON
This series of commands is equivalent to the previous command:
PARAM SWITCH-1 ON
PARAM SWITCH-4 ON
PARAM SWITCH-15 ON
Requesting a Debugger Instead of ABEND
If you want your program to call a debugger, rather than ABEND, after printing any fatal error
messages, you must execute a PARAM INSPECT ON command before executing your program.
The PARAM INSPECT ON command is:
PARAM INSPECT ON
Specifying Waited Input-Output
To cause your HP COBOL program to do all its input-output in the wait mode, execute the command
PARAM WAITED-IO ON before you execute the program. For more information, see PARAM
Command (page 586).
Using OBEY Files to Prepare for Execution
If you expect to have to enter the same set of preparation commands repeatedly, you can save
time by putting those commands in an OBEY command file. You can create an OBEY command
file with an HP editor (see the example in Running the Compiler (page 753)).
Suppose that you almost always need to execute these preparation commands before executing
your program, PROG1, so you put them into an OBEY command file named PREP1:
Preparing to Execute an HP COBOL Program 823










