Sample SQ DISPLAY command sets
Message Advisor provides sample SQ DISPLAY command sets that can serve as templates when building your own SQ DISPLAY command sets. The MAQSAMP library contains the sample command sets.
The following table identifies the library members that contain the sample SQ DISPLAY command sets.
Member | Description |
|---|---|
QMC@DSP1 | displays message queue statistics |
QMC@DSP2 | displays destination queue information |
QMC@DSP3 | displays destination information |
QMC@DSP4 | displays record information |
The following sample command sets, shown in the following figure, are similar, but not identical to, the samples provided in MAQSAMP, and shows a command set requesting a detailed report of destinations with messages. The command set requests a report for all destinations starting with $R61P.
SELECT DESTINATION=$R61P*
END
In the following figure shows the first command set requests a display of destination queues for destinations that begin with MSC and end in 2. The second command set requests a display of destination queues for TRAN1, APPC, and OTMA destinations. The third command set requests a display of destination queues for the staging destinations ( Q2 and Q6). MAQSAMP(QMC@DSP2).
SELECT DESTINATION=MSC*2
END
DISPLAY IMSID=PR7B,TYPE=DEST_QUEUES
SELECT QTYPE=(Q1,Q7,Q9)
END
DISPLAY IMSID=PR7B,TYPE=DEST_QUEUES
SELECT QTYPE=(Q2,Q6)
END
The following figure shows a command set requesting a message record prefix and text in hexadecimal format. For this sample, the ENTRYID was determined from a previously-executed Message Advisor DISPLAY command. MAQSAMP(QMC@DSP4) contains a sample command set similar to that in this figure.
ENTRYID=02000507BA23FCAB3532F0A7
END
The following figure shows a command set requesting message queue statistics. MAQSAMP(QMC@DSP1) contains a sample command set similar to that in this figure.
END
For more information about building and executing an SQ DISPLAY command set and for information about using the SQ DISPLAY command to create reports, see the Using.
Related topic