COMMITMENT CONTROL Clause
The COMMITMENT CONTROL clause specifies the files that will be placed under commitment control when they are opened.
File-name-6 must be specified in the FILE CONTROL paragraph of the same program as the I-O-CONTROL paragraph in which the COMMITMENT CONTROL clause appears.
These files will then be affected by the COMMIT and ROLLBACK statements. The COMMIT statement allows the synchronization of changes to database records while preventing other jobs from modifying those records until the COMMIT is complete. The ROLLBACK statement provides a method of cancelling changes made to database files when those changes should not be made permanent.
The COMMITMENT CONTROL clause can specify only files assigned to a device type of DATABASE. Files under commitment control may have an organization of sequential, relative or indexed, and may have any access mode valid for a particular organization.