Commitment control in the SQL statement processor

A commitment-control level is specified on the RUNSQLSTM command.

If a commitment-control level other than *NONE is specified, the SQL statements are run under commitment control. If all of the statements successfully runs, a COMMIT is done at the completion of the SQL statement processor. Otherwise, a ROLLBACK is done. A statement is considered successful if its return code severity is less than or equal to the value specified on the ERRLVL parameter of the RUNSQLSTM command.

The SET TRANSACTION statement can be used within the source member to override the level of commitment control specified on the RUNSQLSTM command.

Note: The job must be at a unit of work boundary to use the SQL statement processor with commitment control.