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.

User <strong>Queue</strong> <strong>APIs</strong><br />

User <strong>Queue</strong> <strong>APIs</strong><br />

This chapter describes the user queue <strong>APIs</strong>, which let you create and delete user queues. User queues are<br />

permanent objects with an object type of *USRQ. They provide a way for one or more processes to<br />

communicate asynchronously.<br />

You can use user queues to:<br />

● Communicate between two processes asynchronously<br />

● Store data in arrival sequence for later use<br />

● Contain keyed messages<br />

● Create a batch machine (For an example, see .)<br />

● Permit better performance than the data queue interface<br />

You can save and restore user queues. However, you can only save or restore its definition. You cannot<br />

save or restore the messages in it. You cannot restore a user queue if a user queue with the same name<br />

already exists in the library. You must provide programs to use this object type to enqueue and dequeue<br />

messages.<br />

The user queue <strong>APIs</strong> are:<br />

● Create User <strong>Queue</strong> (QUSCRTUQ)<br />

● Delete User <strong>Queue</strong> (QUSDLTUQ)<br />

In addition to using these <strong>APIs</strong>, you can work with user queues through the following:<br />

● ILE C programming language<br />

● Delete User <strong>Queue</strong> (DLTUSRQ) command<br />

● Machine interface (MI) instructions<br />

For details about MI instructions, refer to the Machine Interface Functional Reference book, which is a<br />

comprehensive reference to machine interface (MI) instructions. This book is not accessible online and<br />

must be ordered from Mechanicsburg. For details about the DLTUSRQ command, see Control Language<br />

information.<br />

Top | Object API categories | <strong>APIs</strong> by category<br />

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/obj3.htm [10/4/1999 2:33:22 PM]

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

Saved successfully!

Ooh no, something went wrong!