×
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.
That makes a good interprocess communication scheme more important. There are some windows API's,
that come with iSeries Navigator, which will allow you to drop a message in a data queue. You could
do that whenever you finish processing a file. The message could be the name of the file you just
processed. You can then retrieve this message in your RPG and process that file. It can be
completely one way communication. You can use a dedicated data queue or a keyed data queue where both
applications know the key being used for this process. If you have to wait until a certain group of
files are finished processing, the Windows program knows when it is finished, and can send the
completion message whenever you want it to.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Christopher
Anderson
Sent: Thursday, July 24, 2008 1:03 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Time Delay In RPG IV
Thanks for all your helpful suggestions. The problem is that the
process I'm waiting on is a Windows Service running on a Windows 2003
Server and I'm not sure how I'd capture any state information from that
program. Even if I could, I don't think I would get anything meaningful
as it doesn't 'terminate' when it is over but merely finishes processing
the files I've put into its queue (I'm converting files from one
document type to another).
Because of that, I'm not sure how I'd be able to use a dataqueue unless
I could create a program that checks for the new file names. I've
basically done that in the same program by waiting 1 second then
checking for the existence of the files then waiting another second. It
feels a bit kludgy but I can't think of anything better.
Again, thanks for all the help,
Chris Anderson
Partners Mutual Insurance
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.