|
I have a trigger that updates the same file that the trigger is attached to. That is to say, File F has a before update trigger T. Program T updates file F (a different record in file F than the one that caused the trigger to be fired) The problem I have is that this scenario results in recursive calls to the RPG program. This is not a problem if the program is an ILE program that has specified ACTGRP(*NEW) on the create, but it means that a new activation group is being created for each invocation of this program. Each base update can result in up to 5 triggered updates, and I am looking at 30 to 40,000 base updates each night, resulting in the creation and destruction of 150 to 200,000 activation groups in this job. Now, on a 530 this is not the end of the world, but I would like a better solution. Any ideas? Thanks, -Walden PS. Production is V3R7, but development is V3R1. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.