Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
6-58
PRINT SCREEN Statement
Direct displays, such as DISPLAY "XYZ" IN SCREEN-FIELD, are not printed
because these displays have no effect on Working-Storage.
If a screen field has an associated FROM field and a different associated TO field,
an anomaly exists. The PRINT SCREEN statement resolves this by assigning the
following precedence when selecting associated Working-Storage items:
highest -> USING association -> TO association
lowest -> FROM association
Table 6-5 lists the TERMINATION-STATUS error codes set by the PRINT SCREEN
statement.
Table 6-5. PRINT SCREEN Statement Errors
TERMINATION-
STATUS Meaning
0 No error has occurred.
1 The base screen is not displayed. Default system action: The terminal
is suspended without possibility of restart, and a message describing
the error is logged to the log file.
2 The printer specification is invalid for the terminal type, or the printer
device type is not supported: the IS-ATTACHED modifier of the
PATHCOM SET TERM PRINTER command is specified for 6510
terminals; the IS-ATTACHED modifier is specified for IBM3270 and
the printer is not attached to the same controller as the terminal; or a
file having a device type other than a terminal, printer, or process has
been specified.
Default system action: The terminal is suspended without possibility
of restart, and a message describing the error is logged to the log file.
3 The printer requires attention (for example, it is in NOT READY
state). During I/O to the printing device, an operating system file error
code indicating the device requires human intervention was returned.
Default system action: If special register DIAGNOSTIC-ALLOWED
is set toYES a diagnostic screen informing the terminal operator of the
condition is displayed.
If the terminal operator presses the 6510 or 6520 terminal F1 key (or
equivalent IBM3270 key), the operator has corrected the condition;
screen recovery is invoked. The copy is restarted from the beginning.
If the special register DIAGNOSTIC-ALLOWED is set to NO, the
terminal is suspended with the possibility of restart, and a message
describing the error is logged to the log file.
4 A fatal error has occurred. During I/O to the device, an operating
system file error code indicating a fatal error condition was returned.
Default system action: The terminal is suspended with the possibility
of restart, and a message describing the error is logged to the log file.