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



Hello Richard,

I want to force a message queue to BREAK mode using a CL, then send it a message.

Why not send a break message? Then you don't have to change the message queue.



Being a tidy person I would like to return it to it's prior status. How do I retrieve the delivery status of a message queue ( not mine, most likely QSYSOPR's ) before I change it?

You can do that with the QMHRMQAT API, as Wayne pointed out. But, I wanted to warn you that this is NOT a tidy solution! Message queues, especially QSYSOPR, are often shared by many applications. IF two applications ran at the same time that both tried to change it to break mode, and change it back, they'd risk interfering with one another.

Sending a break message is a much better option than changing the message queue delivery (when used as part of a program's algorithm, anyway).

Just something to think about

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.