Data queues Directory
Directory .ZIP
objects?
These commands are examples of command shells for most Data Queue APIs. Note that the RCV* commands are all shells for the Receive Data Queue (QRCVDTAQ) API. All receive entries, but each serves a slightly different purpose and has different parameter values. Also, the SND* commands all shell the Send Data Queue (QSNDDTAQ) API. Differences are that some send/receive keyed entries and some non-keyed entries, and some send/receive different lengths. The length differences allow you to allocate memory more closely to your needs.
Please read the @GENERAL DISCLAIMER document for any items you should be aware of if you download any of these items.
CLPs
RTNDTAQD -- Retrieve Data Queue Description (QMHQRDQD):
This program uses the Retrieve Data Queue Description (QMHQRDQD) API by executing the RTVDTAQD command shell. This is an example of using what could be called a 'low-level' command to create a 'high-level' command. While it would be possible to use RTVDTAQ directly in the calling program (or of course, QMHQRDQD), you'd need to code something like what's in the RTNDTAQD CLP every time you used it. RTNDTAQD returns basic attributes of a *dtaq to a calling program.
CMDs
CHKDTAQKE -- Retrieve Data Queue Message (QMHRDQM):
The command definition object source for QMHRDQM. This returns a *dtaq entry to the calling program but leaves the message on the *dtaq. I leave it as an exercise for the reader as to why the lengths were chosen as they were.CLRDTAQ -- Clear Data Queue (QCLRDTAQ):
The command definition object source for QCLRDTAQ. This clears the entires from a *dtaq. Note that this version of the command does not allow selection by key.RCVDTAQE -- Receive Data Queue (QRCVDTAQ):
The command definition object source for QRCVDTAQ. This command receives a medium-length non-keyed entry from a *dtaq.RCVDTAQKE -- Receive Data Queue (QRCVDTAQ):
The command definition object source for QRCVDTAQ. This command receives a medium-length keyed entry from a *dtaq.RCVDTAQKES -- Receive Data Queue (QRCVDTAQ):
The command definition object source for QRCVDTAQ. This command receives a short keyed entry from a *dtaq.RTNDTAQD -- Return Data Queue Description:
The command definition object source for RTNDTAQD. This command returns info about a *dtaq description to the calling program. The command is useful when you need to delete and recreate a *dtaq. The command returns the attributes into CL variables.RTVDTAQD -- Retrieve Data Queue Description (QMHQRDQD):
The command definition object source for QMHQRDQD. This command retrieves the attributes of a *dtaq. The attributes are returned into a CL variable as a data structure that must be parsed to extract individual attributes.SNDDTAQE -- Send Data Queue (QSNDDTAQ):
The command definition object source for QSNDDTAQ. This command sends a medium-length non-keyed entry to a *dtaq.SNDDTAQKE -- Send Data Queue (QSNDDTAQ):
The command definition object source for QSNDDTAQ. This command sends a medium-length keyed entry to a *dtaq.SNDDTAQKES -- Send Data Queue (QSNDDTAQ):
The command definition object source for QSNDDTAQ. This command sends a short keyed entry to a *dtaq.