× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Recursive Triggers and ILE/RPG
  • From: "Walden H. Leverich III" <walden@xxxxxxxxxxxxxxx>
  • Date: Tue, 27 May 1997 21:07:49 -0400

John,
What I am building is a tree structure with dollar amounts in the nodes.
The dollar amounts in a node are the sum of the dollar amounts in its
children. Each node knows who its immediate parent is and the root node has
a parent of zero. Therefore all the trigger program does is take the net
effect of the change and apply it to its parent, if the parent is zero then
the recursion stops.

I have considered adding a data queue and a "sleeper" job into the mix, but
then the process is more error prone, and I am dependent on the sleeper job
being active inorder to keep my tree in sync. Should I have a machine crash
and lose the data queue entries I would have to rebuild the entire tree
since I wouldn't know what updates had been applied and what ones had not.
At least now I can run under commitment control. (We are all using
commitment control, right????)

-Walden

 ----
From: John Carr <74711.77@CompuServe.COM>
To: Midrange-l <midrange-l@midrange.com>
Date: Monday, May 26, 1997 1:10 AM
Subject: Recursive Triggers and ILE/RPG

<snip>
>
>Walden;
>First question how does the Program T. know which update is calling it?
>Either the initial one or the one it created? Second curiousity is why
>are you updating the same file that you're responding to a trigger from?
>
>Maybe in program T. you should write a data queue entry passing the
trigger
>parms and have it do the updating.  Or even Intra-APPC program. 
>but with 30-40000 updates a nite, I might go with the Data Queue solution
>and have a background job in some subsystem making the second update. 
>I normally try not to use data queues because of their various
>characteristics but in a tight loop, your window of vulnerability is
>kinda low.
>
>John P. Carr CDP
>EdgeTech
>74711.77@compuserve.com   804-739-7689
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>* 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   *
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.