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 | xa_commit() and db2xa_commit() APIs | xa_rollback() and db2xa_rollback() APIs |