RPG/400 Help

COMIT (Commit)

*---------*---------------*-----------------*----------------*---------------*
|   CODE  |    FACTOR 1   |     FACTOR 2    |     RESULT     |  INDICATORS   |
|         |               |                 |      FIELD     |               |
*---------*---------------*-----------------*----------------*---------------*
| COMIT   | Boundary      |                 |                |    _ ER _     |
*---------*---------------*-----------------*----------------*---------------*

The COMIT operation:

The file changes and the record-lock releases apply to all the files you have under commitment control, whether the changes have been requested by the program issuing the COMIT operation, or by another program in the same routing step. The program issuing the COMIT operation does not need to have any files under commitment control. The COMIT operation does not change the file position.

Commitment control starts when the COMIT operation is executed or when the CL command STRCMTCTL is executed. See the chapter on "Commitment Control" in the RPG/400* User's Guide for more information.

In factor 1, you can specify a literal, named constant, array element, table name, data structure, or data structure subfield to identify the boundary between the changes made by this COMIT operation and subsequent changes. If you leave factor 1 blank, the identifier is null.

The optional indicator in positions 56 and 57 is set on if the operation is not completed successfully. For example, the indicator is set on if commitment control is not active.


[ Top of Page | Previous Page | Next Page | Table of Contents ]