SET INTERCEPT command (COBOL, full-screen mode, line mode, batch mode)
Intercepts input to and output from the console. Output and prompts for input are displayed in the log.
Console I/O intercepts remain in effect for the entire debug session,
unless you terminate them by entering SET INTERCEPT OFF
command.
The initial setting is OFF
.
ON
- Turns on console I/O interception. z/OS® Debugger displays
output in the log, preceded by the CONSOLE keyword to identify the
output. Input causes a prompt entry in the log, with the CONSOLE
identified. You can then enter input for the console on the command
line by using the
INPUT
command. OFF
- Turns off console I/O interception.
CONSOLE
- Turns I/O interception on or off for the console. This consists of:
- Job log output from
DISPLAY UPON CONSOLE
- Screen output (and confirming input) from
STOP
'literal' - Terminal input for
ACCEPT FROM CONSOLE
orACCEPT FROM SYSIN
.
- Job log output from
Usage
notes
- For CICS®,
SET INTERCEPT
is not supported. - You cannot use the
SET INTERCEPT
command while you replay recorded statements by using thePLAYBACK
commands.
Examples
Turn on the I/O interception for the console. The current programming
language setting is COBOL.
SET INTERCEPT CONSOLE;
Refer to the following topics for more information related to the material discussed in this topic.
- Related references
- INPUT command (C, C++, and COBOL)
- SET REFRESH command (full-screen mode)