Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)

Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
6-85
PRINT SCREEN Statement
An unexpected value might be printed because the value in the Working-Storage
item has never been displayed or contains data that is different from what is
presently displayed on the screen.
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
Tabl e 6- 5 lists the TERMINATION-STATUS error codes set by the PRINT SCREEN
statement.
Table 6-5. PRINT SCREEN Statement Errors (page 1 of 2)
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.