Having installed the sample and invoked it from the tailored CLIST CSQ4RCH1, the screen shown in
Figure 1 is displayed.
Enter the queue manager and queue name to be viewed (case sensitive) and the message list screen
is displayed (see Figure 2 ).
This screen shows the first 99 messages on the queue and, for each, shows the following fields:
Msg No
Message number
Put Date MM/DD/YYYY
Date that the message was put on the queue (GMT)
Put Time HH:MM:SS
Time that the message was put on the queue (GMT)
Format Name
MQMD.Format field
User Identifier
MQMD.UserIdentifier field
Put Application Type
MQMD.PutApplType field
Put Application Name
MQMD.PutApplName field
The total number of messages on the queue is also displayed.
From this screen a message can be chosen, by number not by cursor position, and then displayed.
For an example, see Figure 3.
Once the message has been displayed it can be deleted, left on the queue, or forwarded to another
queue. The Forward to Q Mgr and Forward to Queue fields are
initialized with values from the MQMD, these can be changed before forwarding the message.
The sample design allows only messages with unique MsgId / CorrelId combinations
to be selected and displayed, because the message is retrieved using the MsgId and
CorrelId as the key. If the key is not unique the sample cannot retrieve the chosen
message with certainty.
Note: When we use the SCSQCLST(CSQ4RCH1) sample to browse messages, each invocation causes the
backout count of the message to increase. To change the behavior of this sample, copy
the sample and modify the contents as necessary. We should be aware that other applications that
rely on this backout count can be influenced by this increasing count.
Parent topic:The Message Handler sample on z/OS