Hi,
I want to write a Trigger for a file. I want to test if the trigger can be fired only when the file operation is comitted in the program.
can you explain me this trigger concept in scenario such that......i update a file. This file has trigger associated with it. now suppose the program fails after i update the file and before program executes 'Comit' operation.....In such case I dun want the trigger to be fired as my operation is not comitted......Is there any work around for such scenario....
Can i write a simple routines to test my programs for such scenarios...
Thanks,
Nutan.
Software/Hardware used:
AS400
ASKED:
August 31, 2009 9:22 PM
UPDATED:
September 1, 2009 1:28 PM
thanks Phil. I’m still confused with the concept of Comit operation on database….
I think there is no way I can make ‘Comit’ operation as the trigger event. If I’m not wrong then this is the limitation of AS400 Trigger ….This may mar integrity between the trigger log file and actual database update that has taken place….and there is no way to overcome this…
Please correct if I’m wrong..
Nutan.