Okay, I've got a program on a Windows Server (a service) that monitors a
directory and converts any file in said directory from PDF to TIF. I
mapped a network drive to an iseries IFS directory and monitor that.
So, to start the asynchronous process, I merely copy files into that
directory. Right now, I'm handling the return by checking if the tiffs
are in that directory every second or so.
Since RPG never actually directly interacts with that process and I
didn't write that program, I'm not sure how I could possibly make a more
intelligent guess as to when the process is ending. Because it is a
queue system and may have multiple threads feeding documents into the
directory I can't really be sure when and in what order the files are
processed.
I suppose this is where the fun comes in in heterogeneous environments.
Thank you,
Chris Anderson
Partners Mutual Insurance
Don't just delay for a fixed time period. Wait until you know the
asynchronous process has completed. That requires more/better design but
will avoid problems caused by the other process not finishing within the
fixed wait time.
How do you start the asynchronous process?
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.