Author |
Message
|
nav_kum |
Posted: Wed Feb 26, 2003 4:00 am Post subject: Message Input Count |
|
|
Newbie
Joined: 26 Feb 2003 Posts: 6
|
HI All,
Is there any way where i can find the number of messages got landed in my queue even if the queue is empty.
Regards,
Navin |
|
Back to top |
|
 |
jc_squire |
Posted: Wed Feb 26, 2003 12:04 pm Post subject: |
|
|
 Centurion
Joined: 14 Apr 2002 Posts: 105 Location: New Zealand
|
Hi,
You won't be able to tell by looking at the queue attributes, however, if the messages came from a remote qmgr to which you have access you could look at the channel status on the remote queue manager which will show all the messages that passed through the channel for delivery to all local queues on your local queue manager. If all the messages were destined for the queue in question then you would have your answer.
Regards _________________ J C Squire
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
blowbeat |
Posted: Thu Feb 27, 2003 1:02 am Post subject: |
|
|
Apprentice
Joined: 02 Apr 2002 Posts: 49
|
....for OS390 /zOS the answer would be 'yes' if you have set the options to generate accounting statistics & then decode the SMF records.
Jan. |
|
Back to top |
|
 |
Troilus |
Posted: Fri Feb 28, 2003 3:48 am Post subject: |
|
|
Apprentice
Joined: 12 Jul 2002 Posts: 28 Location: Belgium
|
Or if the messages where persistent you can scan through the MQ recovery log and count them. |
|
Back to top |
|
 |
leongor |
Posted: Fri Feb 28, 2003 5:02 am Post subject: |
|
|
 Master
Joined: 13 May 2002 Posts: 264 Location: Israel
|
The only way to do it - PCF command Reset Queue Statistics (MQCMD_RESET_Q_STATS).
You will get this info in response :
Quote: |
QName
TimeSinceReset
(Time since statistics reset in seconds)
HighQDepth
(Maximum number of messages on a queue.
This count is the peak value of the CurrentQDepth local queue attribute since the last reset. The CurrentQDepth is incremented during an MQPUT call, and during backout of an MQGET call, and is decremented during a (nonbrowse) MQGET call, and during backout of an MQPUT call.)
MsgEnqCount
(Number of messages enqueued.
This count includes messages that have been put to the queue, but have not yet been committed. The count is not decremented if the put is subsequently backed out.)
MsgDeqCount
(Number of messages dequeued.
This count includes messages that have been successfully retrieved (with a nonbrowse MQGET) from the queue, even though the MQGET has not yet been committed. The count is not decremented if the MQGET is subsequently backed out.)
|
Pay attention that if transaction is rollbacked and performed again then it'll be counted twice. _________________ Regards.
Leonid.
IBM Certified MQSeries Specialist. |
|
Back to top |
|
 |
nav_kum |
Posted: Fri Feb 28, 2003 5:13 am Post subject: |
|
|
Newbie
Joined: 26 Feb 2003 Posts: 6
|
|
Back to top |
|
 |
|