Mike wrote:

> you need to write a program that runs continually sitting
> on a RCVMSG with RMV(*NO) specified! on QSYSOPR, you can
> then check each message ID, and if it is the undesirable
> one, RMVMSG afterward. The program will only use CPU when
> it wakes up when a message arrives.

Alternatively, and fitting nicely into the "crude but effective" category,
you could write a program that you can run on an ad-hoc basis that simply
blasts through the message queue removing the unwanted messages. It's not
quite as simple as it should be because of the subtleties of message keys
and next messages. As it happens I've got a program at home that does this
for user message queues that should be easy to adapt. If you want a copy,
Dave, drop me a note off list and I'll mail it to you later.

Dave...
               _________  ,___o
             __________   _\ <;_
           ___________   (_)/ (_)       http://www.twickenhamcc.co.uk
=======================================================
The opinions expressed in this communication are my own and do not
necessarily reflect those of my employer.



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.