The COMMIT Statement
General Format
General Rules
- Execution of the COMMIT statement causes all record locks in all files held by the run unit to be released.
- The file lock on an exclusive file is not affected by the COMMIT statement.
- If your COBOL system supports the WITH ... ROLLBACK clause of the SELECT statement as other than documentary, then the COMMIT verb:
- Indicates completion of the current transaction
- Makes all changes applied during the transaction permanent.