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

Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
6-6
ABORT-TRANSACTION Statement
ABORT-TRANSACTION Statement
The ABORT-TRANSACTION statement aborts the transaction of a terminal operating
in transaction mode. Transaction mode is an operating mode in which Pathway
servers that are configured to run under the HP Transaction Management Facility
(
TMF
) can lock and update audited files. When this statement runs, all database
updates that were made to audited files during the transaction are backed out and no
attempt is made to restart the transaction.
Execution of this statement causes the terminal to leave transaction mode, and the
special register TRANSACTION-ID to be set to SPACES.
If the terminal is not in transaction mode when this statement is run, the terminal is
suspended for pending abort.
If a fatal error occurs while the transaction is being aborted, and the current
BEGIN-TRANSACTION statement does not have an ON ERROR phrase, the terminal
is suspended for pending abort; the current transaction is backed out. If the current
BEGIN-TRANSACTION statement includes an ON ERROR phrase, the ON ERROR
branch is run, and the terminal is not suspended.
For additional information about programming for TMF, see the
Pathway/iTS TCP and
Terminal Programming Guide
.
ACCEPT Statement
The ACCEPT statement operates differently for terminals in block mode from terminals
in conversational mode. It cannot be used to communicate with intelligent devices.
If the terminal associated with the SCREEN COBOL program is operating in block
mode, ACCEPT performs the following:
Waits for response from the terminal
Receives data from the terminal
Program Control EXIT
GO TO
PERFORM
STOP RUN
Compiler Directing COPY
USE
Transaction Management ABORT-TRANSACTION
BEGIN-TRANSACTION
END-TRANSACTION
RESTART-TRANSACTION
ABORT-TRANSACTION
Table 6-1. Categories of Statements (page 2 of 2)