× 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 would depend on how you name subprocedures:

/free

ipcHandle = initInterProcessComm();

... Submit asynchronous process ....

completionStatus = waitForIPCCompletion(ipcHandle, timeout);

/end-free

This would work any time you need to submit an asynchronous procedure and wait for it to finish. You
don't need to worry about how long to wait, it would just wait until the async job was complete. Of
course the async job would have to call sendIPCComplete(ipcHandle), or potentially
sendIPCError(ipcHandle).

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Thursday, July 24, 2008 11:39 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Time Delay RPG IV

Murphy, Mark wrote:
Alternately you could use data queues to do this, and the RPG will
wait exactly until the asynchronous process is finished.

That seems to be a pretty round about way to get a delay. It can also cause confusion ... as someone
else who's looking at the code might think the data queue is supposed to actually supply data,

Calling sleep() or DLYJOB makes a lot more sense to me.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.