Transaction Management Verbs

There are three verbs used in ACUCOBOL-GT transaction management. These are:

TRANSACTION, ROLLBACK, START, and COMMIT are reserved words.

START TRANSACTION identifies the beginning of a transaction. The COMMIT TRANSACTION statement indicates the end of a transaction and commits the changes made. The ROLLBACK verb causes the transaction to be rolled back or canceled.

There is an implicit COMMIT before a STOP RUN or before the end of the program. However, the runtime performs an implicit ROLLBACK before a STOP RUN if the STOP-RUN-ROLLBACK configuration variable is set. If the runtime system is killed by the user or encounters a fatal error prior to completing a transaction, then an automatic rollback occurs. For more information, see START Statement or COMMIT Statement in the ACUCOBOL-GT Reference Manual.