Using User Queue APIs
You can use user queues to:
- Communicate between two processes asynchronously.
- Store data in arrival sequence for later use.
- Contain keyed messages.
- Create a batch machine. (For an example, see Example: Creating a batch machine.
- Permit better performance than the data queue interface.
You can save and restore a user queue; however, you can save or restore its definition only. You cannot save or restore the messages in it. You cannot restore a user queue if a user queue with the same name already exists in the library. You must provide programs to use this object type to enqueue and dequeue messages.
In addition to the user queue APIs, you can work with user queues through the following:
- ILE C programming language
- Delete User Queue (DLTUSRQ) command
- Machine interface (MI) instructions
For detailed descriptions of the MI instruction fields and the formats of those fields, see the IBM® i Machine Interface topic collection. For details about the DLTUSRQ command, see the Control language topic collection.
[ Back to top | Object APIs | APIs by category ]