× 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.



John wrote:

>I have a requirement to replicate product
>master records (in realtime) from one
>division to another, on an ongoing basis.
>The records are all contained within the
>same PF & member, with a primary key on
>Division# and Product Code. A trigger pgm
>seems like an obvious solution, but there
>is a small problem. The only compiler
>available to me is RPG, and an RPG
>program cannot be called recursively.

Is this a "complete synchronisation" - adds, updates and deletes?  If so, I
think you need to queue these up with a keyed DTAQ.

Update div 1.
  Trigger fires, places "Update hhmmss div 1" into queue.

Server reads queue - leaves entry.
  Update division 2 from Division 1 data.
    Trigger fires, sees that Division 1 is already there,
    places "remove entry" into queue.
      Server reads queue - leaves entry.
        Since it's a "remove" entry, server deletes the
        Division 1, Division 2 and "remove" entries from the queue.

What a mess.

It's not very coherent, I know, but perhaps this will spur a more
intelligent response from the list.
  --buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.