Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Retrieve <strong>Data</strong> <strong>Queue</strong> Message (QMHRDQM) API<br />
20 14 BINARY(4) Message key length available<br />
24 18 BINARY(4) Message text length returned<br />
28 1C BINARY(4) Message text length available<br />
32 20 BINARY(4) Entry length returned<br />
36 24 BINARY(4) Entry length available<br />
40 28 BINARY(4) Offset to first message entry<br />
44 2C CHAR(10) Actual data queue library name<br />
54 36 CHAR(*) Reserved<br />
These fields repeat for BINARY(4) Offset to next message entry<br />
each message retrieved. CHAR(8) Message enqueue date and time<br />
CHAR(*) Message key<br />
CHAR(*) Message text<br />
CHAR(*) Reserved<br />
RDQS0100 Format<br />
The following table describes the RDQS0100 format of the Message selection information parameter. This<br />
format is used with data queues when selection with keys is not necessary. This format cannot be used<br />
with keyed data queues. To retrieve messages using keys and key search order, use format RDQS0200.<br />
For a detailed description of each field, see Field Descriptions.<br />
For example, to retrieve the first 10 bytes of the last entry in a data queue specify the following:<br />
Parameter seven would contain a format name of 'RDQS0100' and parameter five would consist of a<br />
Selection type of 'L', the Reserved field would be blanks, and Number of message text bytes to retrieve<br />
would be 10.<br />
Offset<br />
Dec Hex Type Field<br />
0 0 CHAR(1) Selection type<br />
1 1 CHAR(3) Reserved<br />
4 4 BINARY(4) Number of message text bytes to retrieve<br />
RDQS0200 Format<br />
The following table describes the RDQS0200 format of the Message selection information parameter. This<br />
format is used to retrieve messages from data queues when selection with keys is necessary. When using<br />
this format, all messages satisfying the key search order are returned. The messages are returned in first-in<br />
first-out order. For a detailed description of each field, see Field Descriptions.<br />
Note: This format is valid only if the queue was created as a keyed data queue.<br />
Offset<br />
http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qmhrdqm.htm (4 of 8) [10/4/1999 2:32:30 PM]