|
Dan Glad to hear it. Have you looked in the CL Programming manual? It has a chapter on message handling. Basically, if I don't know how many or what type of message I'm going to get, I use a loop with a test like LOOPENTRY: RCVMSG . . . IF (&MSGID *EQ ' ') (GOTO LOOPEXIT) ELSE DO .. .. .. ENDDO GOTO LOOPENTRY LOOPEXIT: At 10:15 AM 11/11/02 -0800, you wrote:
Thanks, Vern, I found it! BTW, RTVMSG in the original post should have been RCVMSG, obviously, given the context of the question. I'm trying to get a feel for how RCVMSG works. Can I assume that, to get to the QSH0005 message, all I need to do is a single "RCVMSG MSGTYPE(*COMP) MSGDTA(&EXITSTSCHR)"? I thought I've seen code before that shows RCVMSG used in a loop to weed through several messages to get to the one you're looking for, but a search turned up no good explanation for how this works. Anybody have a good link and/or a short explanation to post? TIA, Dan
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.