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

Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
6-68
END-TRANSACTION Statement
PROCEDURE DIVISION.
:
DIVIDE inv-year BY 4 GIVING divide-result.
:
END-TRANSACTION Statement
The END-TRANSACTION statement marks the completion of a sequence of
operations that are treated as a single transaction. When this statement runs, the
terminal leaves transaction mode. Transaction mode is an operating mode in which
Pathway servers that are configured to run under the Transaction Management Facility
(TMF) can lock and update audited files.
If TMF accepts this statement, any database updates made during the transaction
become committed, the terminal leaves transaction mode, and the special register
TRANSACTION-ID is set to SPACES. If TMF rejects this statement, transaction
restart occurs.
If the terminal is not in transaction mode when the END-TRANSACTION statement is
run, the terminal is suspended for a pending abort.
EXIT Statements
The EXIT statements mark the end of a procedure or the exiting point of a subprogram.
The forms of the EXIT statements are:
EXIT
EXIT PROGRAM
Each form is described in the following paragraphs.
EXIT Statement
The EXIT statement marks the end of a procedure. The statement performs no
operation. However, if an EXIT statement is referenced by a previous PERFORM
statement, the EXIT statement (like any other statement in a SCREEN COBOL
program) provides the instructions for the return linkage to the statement after the
PERFORM statement.
EXIT PROGRAM Statement
The EXIT PROGRAM statement marks the logical end of a called program. When this
statement is run in a called program, control returns to the calling program. If the
END-TRANSACTION
EXIT .