When you call the SAVE-ROW-CHANGES( ) method, by default, the transaction spans just one record at a time. If a rollback occurs, errors are returned to the client as expected.

However, if your transaction spans more than one execution of the SAVE-ROW-CHANGES method and you roll back the transaction, error information at the table level is undone. You cannot access the error information after the rollback.

To save error information on rollback, define the temp-tables in the dataset as NO-UNDO. Using NO-UNDO allows the error information on the temp-tables to not be lost.