×
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 01-Mar-2012 07:08 , Gqcy wrote:
I am attempting to read a data queue (non-keyed, FIFO) to determine
the Sender info, and am setting the remove entry to *NO.
however I keep reading the same (first) record. Is there a trick to
progress through the data queue???
I see that the DSPDTAQ utility uses DMPOBJ to get at the data queue
data, but I would like to use QRCVDTAQ if I can... >
If not for DDM DTAQ objects, then use the QMHRDQM API to get all of
the messages. Limit the receiver size according to the number of
messages that should be read; use the 'R'everse invocation if\when
alternate of the LIFO or the FIFO is desirable.
i_ Retrieve Data Queue Message (QMHRDQM) API i_
"
The Retrieve Data Queue Message (QMHRDQM) API retrieves one or more
messages from a data queue.
The QMHRDQM API allows the retrieval of multiple messages per call. The
message selection information parameter allows you to have some control
over which messages are returned. The QMHRDQM API can be used to
retrieve the following:
* The first or last message of a data queue
* All messages of a data queue
* Selected messages from a keyed data queue
The QMHRDQM API is similar in function to the QRCVDTAQ API. However, the
QRCVDTAQ API can remove the received message from the data queue;
QMHRDQM API does not remove received messages.
Distributed data management (DDM) data queues are not supported using
this API.
...
RDQS0100 Format
The following table describes the RDQS0100 format of the Message
selection information parameter. This format is used with data queues
when selection with keys is not necessary. This format cannot be used
with keyed data queues. ...
"
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.