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.

Receive <strong>Data</strong> <strong>Queue</strong> (QRCVDTAQ) API<br />

Receive <strong>Data</strong> <strong>Queue</strong> (QRCVDTAQ) API<br />

Required Parameter Group:<br />

1 <strong>Data</strong> queue name Input Char(10)<br />

2 Library name Input Char(10)<br />

3 Length of data Output Packed(5,0)<br />

4 <strong>Data</strong> Output Char(*)<br />

5 Wait time Input Packed(5,0)<br />

Optional Parameter Group 1:<br />

6 Key order Input Char(2)<br />

7 Length of key data Input Packed(3,0)<br />

8 Key data I/O Char(*)<br />

9 Length of sender information Input Packed(3,0)<br />

10 Sender information Output Char(*)<br />

Optional Parameter Group 2:<br />

11 Remove message Input Char(10)<br />

12 Size of data receiver Input Packed(5,0)<br />

13 Error code I/O Char(*)<br />

Threadsafe: Conditional; see Usage Notes.<br />

The Receive <strong>Data</strong> <strong>Queue</strong> (QRCVDTAQ) API receives data from the specified data queue.<br />

When more than one program has a receive pending on a data queue at one time, a data entry sent to the<br />

data queue is received by only one of the programs. The program with the highest run priority receives the<br />

entry. The next entry sent to the queue is given to the job with the next highest priority.<br />

If the data queue was created with the AUTORCL keyword on the Create <strong>Data</strong> <strong>Queue</strong> (CRTDTAQ)<br />

command set to *YES, when the queue is empty the storage allocated to the data queue will be reduced to<br />

the storage needed for the initial number of entries defined for the data queue.<br />

Distributed data management (DDM) data queues are supported using this API. This means that you can<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qrcvdtaq.htm (1 of 9) [10/4/1999 2:32:20 PM]

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

Saved successfully!

Ooh no, something went wrong!