ROLLBACK FEATURE ON MULTIPLE PROGRAM

Hi All, 

 

I am now working on the rollback features into my program. 

I am facing a problem that if my program involve more than sub program, then the rollback seem is not works for the sub program if the failure is from the main program. 

For example, 

1) Program A is calling Program A-1. 

2) Program A-1 is running successfully. 

3) Program A is having failure on one of the file after calling Program A-1. 

4) Rollback is rollback whatever save in Program A, but can the program A-1 data also be rollback when Program A fail. 

 

Thanks You. 

 

 

  • Rollback is rollback whatever save in Program A, but can the program A-1 data also be rollback when Program A fail.

    Yes, The Start Transaction / Commit Transaction and Rollback Transaction are programmed by you, and they relate to a file or multiple file operations. So if ProgA changes a record, ProgA-1 changes a record, as long as a Commit on those files are not done, the rollback should rollback the file changes from ProgA-1 and ProgA.