How commit and rollback operations work

Commit and rollback operations affect changes that are made under commitment control.

The following programming languages and application programming interfaces (APIs) support commit and rollback operations.

Language or API Commit Rollback
CL COMMIT command ROLLBACK command
IBM® Integrated Language Environment® (ILE) RPG/400® COMIT operation code ROLBK operation code
ILE COBOL/400® COMMIT verb ROLLBACK verb
ILE C/400® _Rcommit function _Rrollbck function
PL/I PLICOMMIT subroutine PLIROLLBACK subroutine
SQL COMMIT statement ROLLBACK statement
SQL Call Level Interface (CLI) SQLTransact() function (Use to commit and roll back a transaction)
XA APIs Start of changexa_commit() and db2xa_commit() APIsEnd of change Start of changexa_rollback() and db2xa_rollback() APIsEnd of change
Related concepts
SQL call level interface
Database programming
Related information
COBOL/400 user's guide PDF
RPG/400 user's guide PDF
WebSphere development studio: ILE C/C++ programmer's guide PDF
CL programming
Application programming interfaces (APIs)