COBOL Manual for TNS/E Programs (H06.03+)
Executing and Debugging HP COBOL Programs
HP COBOL Manual for TNS/E Programs—520347-003
25-6
Providing for an Unavailable Printer
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.










