Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)
Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual—426750-003
6-8
ACCEPT Statement
the identifiers of items included in the overlay declaration. It is not sufficient to
specify the base screen without the overlay screen specification.
The order in which fields appear in the
screen-identifier
list is the order in
which they are checked and converted.
If this parameter is omitted, the completion condition in either the UNTIL or
ESCAPE clause determines when the statement is to terminate. No data is
accepted from the screen, and no Working-Storage item is altered.
In block mode, if a screen contains only filler items and a DISPLAY statement is
followed by an ACCEPT statement without a screen identifier, the screen remains
until a function key signals the termination of the ACCEPT statement. A typical
instance for omitting the identifier would be during the display of a help screen.
UNTIL and ESCAPE
specify the conditions under which the statement is to complete. In block mode,
these conditions are typically the names of the terminal function keys that the
terminal operator can use. At least one of these two clauses must be present with
a completion condition. If both clauses are present, any one completion condition
can appear in only one of the two clauses.
comp-condition-1
specifies the completion conditions under which the statement is to terminate with
input of data.
comp-condition-2
specifies the completion conditions under which the statement is to terminate
without input of data.
Language elements that can appear as completion conditions (
comp-
condition-1
or
comp-condition-2
) are:
ABORT
indicates that the abort input-control characters were entered to terminate the
ACCEPT statement. This phrase is effective only for terminals in
conversational mode. See the ABORT-INPUT clause described in Section 5.
ABORT is allowed only in the ESCAPE clause. If this phrase is run, the data
items in Working-Storage are not changed.
If the Break key is enabled by Pathway system configuration commands (either
the PATHCOM SET PROGRAM TYPE or SET TERM command) for the
program unit or for the terminals at which the program unit runs, the ABORT
clause must be specified for the Break key to work.
If the terminal is in block mode, ABORT is treated as a comment.










