Is there any way that we can handle commitment control in RPGLE program i.e. if program dumps at some point then we rollback the updates done on other files in previous steps.
Actually I am calling rpgle program from outside iSeries.
If any error occurs on external interface then I have the way to control them from there itself, but if error occurs within RPGLE program then I did not find any way to handle the commit/rollback options there.
Please suggest some suitable method for handling commitment control in RPGLE program.
If I opt for journaling then it would also be for file level and not for program level.