ALLBASE/SQL Reference Manual (36216-90216)

324 Chapter10
SQL Statements A - D
COMMIT WORK
Example
Transaction begins.
BEGIN WORK
statement-1
SAVEPOINT :MyVariable
statement-2
statement-3
Work of statements 2 and 3 is undone.
ROLLBACK WORK TO :MyVariable
Work of statement 1 is committed; the transaction ends.
COMMIT WORK