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



Sorry, I mixed answer and question and made a mess of the question.
I should have asked: So the MSGID retrieved in this particular code is
evertime just only the last one that has been put on the message queue?
And if I want to take the one before the last retrieved I should use *PRV if
I started with *LAST. Is that right?

Thanks,
Arco Simonse

--

2010/5/10 CRPence <CRPbottle@xxxxxxxxx>

Arco Simonse wrote:
I was not aware of the QWCRSSTS API and I'll take that further
for my program.

However, I see my assumption of the working of RCVMSG is bad. I
thought that giving the MSGID as parameter to the RCVMSG would be
sufficient to receive the last message with that id.

I'll study that part again...


The MSGID() parameter of RCVMSG is a /return value/ only; i.e.
the value of the variable &MSGID when a request is made to RCVMSG
MSGQ(QSYSOPR) MSGTYPE(*INFO) RMV(*NO) MSGID(&MSGID) does not effect
any /selection/ across the available informational messages.

Supposing the parameter could effect selection, then there would
be little reason to follow that request with the condition logic of
IF COND(&MSGID *NE 'CPF0968') THEN(DO), but if the effect of RCVMSG
with selection could change the value, then the code should have
done CHGVAR &MSGID 'CPF0968' before retry anyhow.

Regards, Chuck
--
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 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.