Transaction control provides two extraordinarily powerful tools for your applications - atomicity of operations, and recovery of data. There are four key components of any complete transactional system, collectively referred to as ACID:
FairCom RTG is fully ACID compliant and as such, FairCom RTG provides the highest levels of transaction integrity.
Some differences exist in the transaction handling support provided by ACUCOBOL, Micro Focus, isCOBOL, and RM/COBOL:
|
ACUCOBOL |
Micro Focus |
isCOBOL |
RM/COBOL |
START TRANSACTION |
Transaction is explicitly started using START TRANSACTION directive.* |
Not supported Transaction is automatically started during first Update statement.
|
|
|
COMMIT TRANSACTION |
Supported |
Supported |
|
|
ROLLBACK TRANSACTION |
Supported** Allows rollback of updates only if a file has been defined as WITH ROLLBACK.
|
Supported |
|
|
*
In ACUCOBOL a transaction is explicitly started using a START TRANSACTION directive.
**
An ACUCOBOL program allows rollback of updates only if a file has been defined as WITH ROLLBACK.
The FairCom RTG files are created PREIMG by default therefore they are transaction ready and support ROLLBACK out-of-the-box. There is no need to enable <transaction logging> to use ROLLBACK.