Navigation:  Reference > Commands >

Transaction

Print this Topic Previous pageReturn to chapter overviewNext page

 

Using this command you can be assured that an entire set of file updates will be completed.  Otherwise, they can be rolled back to an original state.

 

TRANSX sacRequired - B / C / R

       B - Begin; this option is used at the beginning of the transaction.

       C - Commit; will finalize the transaction and permanently update the files.

       R - Rollback; will return the files to the state before the original Begin command.

 

ERR fn/vRequired -You must provide a field that will be used to receive any error number provided by the routine.  If the command step is successful the value returned is 0.  This field must be of type I.

 

 

COMMENTS

The correct transaction process is:

 

       TRANSX B                && begin

               ...

               all file updates done here

               ...

       TRANSX C                && commit

 

However, if an error occurs while the file updates are being accomplished (between the TRANSX b and TRANSX c steps) you would use the command:

 

       TRANSX R                && rollback

 

and any updates that were completed after the TRANSX b but before the TRANSX c would be undone.

 

 


Page url: http://www.cassoftware.com/tas/manual/transaction.htm