30.06.2013 Views

Data Queue APIs--Categories - FTP Directory Listing - IBM

Data Queue APIs--Categories - FTP Directory Listing - IBM

Data Queue APIs--Categories - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

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 />

❍ the job continues to reference the original data queue, not the newly created data queue.<br />

Message selection information<br />

INPUT; CHAR(*)<br />

Identifies which message (or messages) you want to retrieve. The layout of this parameter is<br />

determined by the value of the message selection information format name.<br />

Length of message selection information<br />

INPUT; BINARY(4)<br />

The length of the message selection information parameter. This must be 8 bytes for RDQS0100<br />

and 16 bytes plus the size of the key for RDQS0200.<br />

Message selection information format name<br />

INPUT; CHAR(8)<br />

The format of the message selection information parameter. The following format names can be<br />

used:<br />

RDQS0100<br />

Format to select messages when using nonkeyed data queues.<br />

For more information see the RDQS0100 Format.<br />

RDQS0200<br />

Format to select messages when using keyed data queues.<br />

For more information see the RDQS0200 Format.<br />

Error code<br />

I/O; CHAR(*)<br />

The structure in which to return error information. For the format of the structure, see Error Code<br />

Parameter.<br />

RDQM0100 Format<br />

The following table lists the fields returned in the RDQM0100 format of the receiver variable parameter.<br />

For a detailed description of each field, see Field Descriptions.<br />

Dec<br />

Offset<br />

Hex Type Field<br />

0 0 BINARY(4) Bytes returned<br />

4 4 BINARY(4) Bytes available<br />

8 8 BINARY(4) Number of messages returned<br />

12 C BINARY(4) Number of messages available<br />

16 10 BINARY<br />

(4)<br />

Message key length returned<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qmhrdqm.htm (3 of 8) [10/4/1999 2:32:30 PM]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!