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




On 25/06/2006, at 9:58 AM, Alan G. Campin wrote:

This is probably a Scott Kelments question.

Using Scott's work as a base, I wrote a service program (XVUSRQ) to
Create, Delete, Get and Put Entries on a User Queue. When I was working
on it, I swear that there was a way with User Queues to retrieve the
messages from the queues and not have them removed from the queue.

Data Queues have an API you can call that will retrieve a data queue
entry without deleting it (QMHRDQM) but it is a bear. I thought that
capability was built right into the DEQ function but now I can't find
anything on it.

Was I just dreaming it?

No, you're not dreaming.

You'll need to materialize the queue attributes to find the current number of entries and entry sizes. Use MATQAT for this.

You'll need to materialize the queue entries to view them without removing them from the queue. Use MATQMSG for this. Note this will also tell you the number of messages on the queue at the time of the materialization plus message size and key size so you could skip MATQAT.


Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



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.