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



I've been using the STRWCH successfully for a long time to watch a message queue for a specific message ID.  I run multiple watches on my system most of the time.  I'm now trying to implement a more global watch that can check all messages arriving at a message queue for a specific text string in the detailed message.  I have it coded and the STRWCH completes successfully, but the exit program never gets called.

Here's the command that I'm using to start the process:

STRWCH SSNID(MYTEST) WCHPGM(MYLIB/MYEXIT)
WCHMSG((*ALL *NONE *MSGDTA  *INFO *GE 00)) WCHMSGQ((QSYSOPR))

After I start the watch, I then send a simple SNDMSG to QSYSOPR with some nonsense text.  The exit program never gets called.

What am I missing?

I know I could just read messages from the message queue using an API, but for a number of structural reasons, I'd really like to do this using the Watch function.

Rich Loeber - @richloeber
Kisco Information Systems
http://www.kisco.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.