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



Hello,

Here is how I understand your situation.

-At random time during the day, the file is cleared and is repopulated
-After the files gets repopulated, you want to call another program that will process the content of the file
-You need a way to know that the file repopulation has taken place and is finished so you can start to process it.
-You would prefer to avoid a trigger on the file since you are only interested in knowing when the repopulation process is finished.

If I understood right, the solution is to add a step in the program that uses DDM to populate the file. That step is to "signal" to the system that the file is ready for processing.
That "signal" can take several form:
- Create a "flag" file or flag data area
- Change the content of a data area
- Put an entry on a data queue
- ...
Your program would need to monitor for this flag and start processing when it is received. Personally, I would choose the data queue route.

Hope this help


Denis Robitaille
Chef de service TI – Solution d’entreprise
Infrastructure et opérations

CASCADES CENTRE DES TECHNOLOGIES
412 Marie Victorin
Kingsey falls(Québec) Canada J0A 1B0
Tél : 819 363 6100 Poste :52130
Cell : 819 352 9362


-----Message d'origine-----
De : RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> De la part de Booth Martin
Envoyé : 11 septembre 2018 21:44
À : RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Objet : run a program when a file changes

This has to be simpler than I am making it.

Several random times a day a file is cleared and then populated again through DDM . When that happens I want to automatically run a program that updates another file.

A trigger is on rows, so using a trigger would run the program for every row - not a good solution.

I cannot access the original file nor the machine that it is on.

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD Cascades - ATTENTION: Ce courriel provient de l'extérieur de l'organisation. Ne pas cliquer sur les liens et ne pas ouvrir les pièces jointes sauf si vous reconnaissez l'expéditeur et que vous êtes sûr que le contenu est légitime.
Cascades - CAUTION: This email is from outside the organization. Do not click on links or open attachments unless you recognize the sender and you are sure the content is safe.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.