|
Thank you for your answer. Instead of going through the pain (this time...) I am removing file records from the work file for files that have zero (0) members before I attempt to allocate them... For what I'm doing, it won't be an issue. Thanks again, Dave -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Simon Coulter Sent: Tuesday, September 19, 2006 5:28 PM To: Midrange Systems Technical Discussion Subject: Re: MONMSG - Ooops, WRONG Message... On 20/09/2006, at 12:31 AM, Turnidge, Dave wrote:
It appears I have to use some version of RTVMSG, but the samples I have found so far haven't seemed to work. What I want to do is monitor for the CPF1085 message, and then check for having received a CPF0944. If it is the '0944, go ahead and update, otherwise get the next file name. Can someone give me direction in this matter?
You need to use the RCVMSG command. You'll have to receive the *ESCAPE message and get its message key then receive the message prior to that key. Or you could cheat and receive and remove the escape message and then just receive the last message. Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 \ / X ASCII Ribbon campaign against HTML E-Mail / \ -------------------------------------------------------------------- -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.