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



Bob, 

Your suggestions have helped greatly in my search for a solution.  Thanks!!

I ended up looping on QSYSOPR to find the specific *INQ message the program
had sent.  Where I get into trouble is when I try to receive a specific
message.  The problem is the msg key from the SNDPGMMSG cmd refers to the
sender's copy, not the actual *INQ message.  The only way to get the key of
a specific *INQ message is to read *INQ messages from the msgq until you
find the msg you want.  Not something I want to do against QSYSOPR, but I
don't have any choice.

Regards,
Stan

-----Original Message-----
From: Bob Crothers [mailto:bob@cstoneindy.com]
Sent: Tuesday, 10 August, 1999 12:18 PM
To: 'MIDRANGE-L@midrange.com'
Subject: RE: Send Message Reply (SNDRPY)


The following works for me:

DCL        VAR(&KEYVAR) TYPE(*CHAR) LEN(4)
DCL        VAR(&MSG) TYPE(*CHAR) LEN(128)
DCL        VAR(&MSGTYPE) TYPE(*CHAR) LEN(2)

RCVMSG     MSGQ(FRED) MSGTYPE(*INQ) WAIT(*MAX) RMV(*NO) +
             KEYVAR(&keyvar) MSG(&MSG)

SNDPGMMSG  MSG('Got msg: ' *CAT &MSG)

SNDRPY     MSGKEY(&KEYVAR) MSGQ(FRED) RPY('Some Reply') +
             RMV(*NO)



It hangs waiting for an inquiry message in message queue FRED.  When 
the message arrives, it responds with "Some Reply".

I do a SNDMSG MSG(ASDF) TOMSGQ(FRED) MSGTYPE(*INQ)

and get back in the msgq:

From  . . . :   BOBC           08/10/99   14:18:19
   ASDF
     Reply . . :   Some Reply

Am I missing something?

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.