|
The way a trigger program is supposed to work...
The trigger program should use both the USROPN and COMMIT(myIndVar)
keywords on the f-spec. Along with ACTGRP(*CALLER) h-spec.
That way it can check the commit flag in the buffer before opening any
files the trigger will update.
Then either open the files with commitment control, or without.
Now if the trigger is fired by a process using commitment control, the
updates made by the trigger will also be rolled back.
Charles
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.