Data queues and user queues both provide a means for one or more
processes to communicate asynchronously. The queues can be processed FIFO
(first-in first-out), LIFO (last-in first-out), or by key.
Determining whether to use data queues or user queues
If user queues and data queues supply the same function, which one should you choose for your implementation? The following is a comparison of the two and an insight into when you should use one queue rather than the other.
Example in ILE COBOL: Data queue
This program illustrates how to use APIs to create and manipulate a *DTAQ. The following program also works with OPM COBOL.