sysLib.rollback
The system function sysLib.rollback reverses updates that were made to databases and MQSeries message queues since the last commit. That reversal occurs in any EGL-generated application.
A rollback occurs automatically when a program ends as a result of an error condition.
Definition considerations
When you use sysLib.rollback with MQ records, the following statements apply:
- Message queue updates are recoverable only if the Include message in transaction option is selected in MQ record part.
- Both message scans and adds are affected by commit and rollback for recoverable messages. If a rollback is issued following a scan for a recoverable message, the message is placed back on the input queue so that the input message is not lost when the transaction fails to complete successfully. Also, if a rollback is issued following an add for a recoverable message, the message is deleted from the queue.
Target platforms
Platform Compatibility considerations iSeries, USS, Windows 2000, Windows NT Reverses changes to relational databases and MQSeries message queues, as well as changes made to remote server programs that were called using client-controlled unit of work. Example
sysLib.rollback();
Related concepts
Logical unit of work
MQSeries support
SQL support
Related reference
File and database (system words)