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



Simon Coulter wrote:
Perhaps is just a conceptual thing but seems to me that SNDMSG is intended for use from the command line (or menu) and SNDPGMMSG is intended for use from within a CL program thus the PGM part refers to where it originates rather than where the message is sent. Compare with QMHSNDM and QMHSNDPM which seem to refer to the target (either explicitly or implicitly) rather than the source.

Interesting. It never occurred to me that it would be referring to where the message was sent *from*.

Actually, you can send *ESCAPE messages to a non-program message queue--although there seems little point since it can't be monitored and won't behave like an *ESCAPE message.

You're right! I just tried it and it works... I guess my mistake was believing the help text for the MSGTYPE parm of SNDPGMMSG:

Message type (MSGTYPE) - Help

Specifies which message type is assigned to this message when it is sent by this program.

Notes:
1. Inquiry messages can be sent only to the external queue or to a
named message queue specified for the TOUSR or TOMSGQ parameters.
When sending an inquiry with the TOMSGQ parameter, a second queue
can be specified if the value is *HSTLOG.
2. Completion, diagnostic, escape, notify, and status messages can
be sent only to a call message queue.
3. Escape messages cannot be sent to the external message queue.


Isn't a program message queue the same as a call message queue?


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.