Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

OI transaction processing

For transact(...) to work, do you have to call Control_On first for the relevant tables? The documentation says you do, but I can't find any instance of the function Control_On in our codebase.

Doc:
https://wiki.srpcs.com/display/ProgrammingTechniques/Sample+Transaction+Processing+Subroutine

Comments

  • Yes and No. The purpose of the Control_On routine is to add (or remove) PROTECT.MFS to the table so the transaction processing can work. If you intend transaction processing to be permanent for a table, then run Control_On once for your table and then save the database definition. Going forward you won't have to run Control_On again. If you only intend to run transaction processing on-the-fly, then call Control_On to enable it before you run your transactional code and then run it again to disable it.
  • Makes sense.

    Thanks
Sign In or Register to comment.