|
The main program is doing the rollbacks fine. The problem I need to address is getting the trigger to roll back its file updates at the same time. I Can't add the commitment directly to the trigger because it wont know when the high level program does a rollback, Currently in test I move an order from one date to another on my screen and the tracking data is written out. If I hit F3 the order move is rolled back but the original tracking that the move was done is not. "Glenn Gundermann" <ggundermann@xxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 11/14/2006 01:31 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc Subject Re: Commitment control and triggers I can't remember what happens but it's easy enough to test, right? Just do a rollback in the trigger program and see what happens. But how about another way. Why not send an escape message from the trigger program and then the program that created the condition would monitor for this and then rollback the changes itself. Just an idea. Glenn Gundermann ggundermann@xxxxxx (647) 272-3295
I am adding commitment control to a program that updates a file. There
is
a trigger on the file to write tracking records to a different file whenever a change is made. Is there a way to get the trigger to rollback it's changes when I use the ROLBCK opcode in my program?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.