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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Retrieve <strong>Data</strong> <strong>Queue</strong> Message (QMHRDQM) API<br />

Required Parameter Group<br />

Receiver variable<br />

OUTPUT; CHAR(*)<br />

The receiver variable that receives the information requested. You can specify the size of the area to<br />

be smaller than the format requested as long as you specify the length parameter correctly. As a<br />

result, the API returns only the data that the area can hold.<br />

Length of receiver variable<br />

INPUT; BINARY(4)<br />

The length of the receiver variable provided. The length of receiver variable parameter may be<br />

specified up to the size of the receiver variable specified in the user program. If the length of<br />

receiver variable parameter specified is larger than the allocated size of the receiver variable<br />

specified in the user program, the results are not predictable. The minimum length is 8 bytes.<br />

Format name<br />

INPUT; CHAR(8)<br />

The format of the data to be placed in the receiver variable. You must use the RDQM0100 format.<br />

Qualified data queue name<br />

INPUT; CHAR(20)<br />

The data queue whose description is to be returned. The first 10 characters contain the data queue<br />

name, and the second 10 characters contain the data queue library name. You can use these special<br />

values for the library name:<br />

*CURLIB<br />

The job's current library<br />

*LIBL<br />

The library list<br />

Note: To improve data queue performance, the data queue <strong>APIs</strong> remember addressing information<br />

for the last data queues used. When this occurs, a specific (not *LIBL or *CURLIB) value is<br />

provided for the library name.<br />

Because the addressing information is saved, users of this API should be aware of the following<br />

scenario:<br />

If,<br />

❍<br />

❍<br />

❍<br />

then,<br />

a job references a data queue,<br />

the data queue is moved using the Move Object (MOVOBJ) command or renamed using the<br />

Rename Object (RNMOBJ) command, and<br />

a new data queue is created with the same name and library as the data queue that was<br />

renamed or moved,<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qmhrdqm.htm (2 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!