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




On 22/12/2009, at 7:50 AM, rob@xxxxxxxxx wrote:

Shouldn't this remove the one for C? Wouldn't C's be at the "top"?

No C's messages are the 3rd in sequence (presuming one escape message for each failed ADDLIBLE command and no other messages in the queue.

Job log should look something like:

*RQS CALL TESTPGM
*ESCAPE CPF2103 Library A already exists in library list
*ESCAPE CPF2103 Library B already exists in library list
*ESCAPE CPF2103 Library C already exists in library list

MSGTYPE(*NEXT) MSGKEY(*TOP) gets the first message in the nominated call stack queue. Since that's usually PGMQ(*SAME (*)) then it gets the first message from this OPM program call.

And if I have the MONMSG CPF2103 immediately after the ADDLIBLE C I can't
begin to fathom what message might be removed prior to it. I hate testing
on a several hour long program and prefer unit testing.

Possibly a completion message from a previous command or a diagnostic message from a previous failure where you only removed the escape message.


I'm willing to try something else though. What does your full RCVMSG look
like? Like, Mark Waterbury's?
RCVMSG PGMQ(*SAME (*)) MSGTYPE(*EXCP) MSGKEY(*NONE) +
WAIT(0) RMV(*YES)


Essentially the same.

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.

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.