QSTATUS command and MsgAge field on MQQPERF display
search cancel

QSTATUS command and MsgAge field on MQQPERF display

book

Article ID: 225352

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

When acquiring the MsgAge field on the MQQPERF display what is the QStatus command that is issued to the MQ?
 
 

Environment

SYSVIEW r16.0

MQ 9.1

z/OS 2.3

Resolution

When you issue any SYSVIEW command that invokes any MQSC command like DISPLAY QSTATES those commands will be logged in an internal buffer and accessible using the MQMSGLG command.
 
After issuing MQQPERF EXTENDED and you then link to the MQMSGLOG command you can see the command that SYSVIEW is issuing.
 
DISPLAY QSTATUS(*)WHERE(MSGAGE GT 0) TYPE(QUEUE)MSGAGE UNCOM
 

Additional Information

For MQQPERF we already have all the other information for the display so SYSVIEW issues a single QSTATUS command to get back all queue information (which is what the * represents) but we add a WHERE parameter that indicates that only queues that have a message age associated with them are to be returned.
 
Using this method we don't get every queue back and only have to update our information for queues with a message age.