× 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 07 Jun 2012 06:54, Marasco, Jon wrote:
Is it possible to browse a non-keyed DQ (not remove entries)
displaying all entries in the DQ?

I did try using PEEK, but after reading the first record, since it
does not remove it since I am using PEEK, the next subsequent read
brought back the same record.


A PEEK is just a request to perform a non-destructive Read\Receive of the logically "first" or "top" entry\message in the Data Queue (DTAQ) object [according to the queue ordering definition LIFO, FIFO, keyed]. That is, effectively using the Receive Data Queue (QRCVDTAQ) API with option "Remove message"=*NO specified; repeated requests against a static data queue would see the same entry every time. See also:
Subject: Data Queue - non-destructive reads
http://archive.midrange.com/midrange-l/201203/threads.html#00004

Use instead [noted in above thread]:
i_ Retrieve Data Queue Message (QMHRDQM) API i_
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qmhrdqm.htm

Regards, Chuck

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.