MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Diffrence in MQ depth and actual number of messages

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
asitpant
Beginner


Joined: 11 Nov 2003
Posts: 5
Topics: 3

PostPosted: Wed Apr 07, 2004 11:58 am    Post subject: Diffrence in MQ depth and actual number of messages Reply with quote

Hi,

My problem is that when I am writting to an MQ while writting the program writes a specific number of messages say 100. But when I read the MQ it reads less number of messages say 90.

If I check the the MQ depth it shows as 100 but if I open and count the actual number of messages it comes to 90 only.

So the problem is that MQ is showing a diffrent depth than the actual number of messages in the MQ and I am able to read less number of messages Confused .

MQ gurus please advice.

Thanks
Asit
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Apr 07, 2004 12:27 pm    Post subject: Reply with quote

Asit,

What is the expiry on messages set to ? -1 indicates unlimited which means that they never expire. You can run the amqsbcg sample against the program to see what the expiry is set to.The expiry time is a period of time expressed in tenths of a second, set by the application that puts the message. The message becomes eligible to be discarded if it has not been removed from the destination queue before this period of time elapses.

I bet that the 10 missing messages were expired and they were not removed until there was a get performed.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
asitpant
Beginner


Joined: 11 Nov 2003
Posts: 5
Topics: 3

PostPosted: Wed Apr 07, 2004 12:45 pm    Post subject: Reply with quote

Hi Kolsu,

Thanks a lot for your reply. I will check this. I need one more favour, could you please provide me some pointers to running amqsbcg in maniframe environment. I have never used this utility before.

Thanks
Asit
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Apr 07, 2004 1:18 pm    Post subject: Reply with quote

Asit,

Check this link for Sample programs for MQSeries for OS/390

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/csqzal03/4.2?DT=20000120125734#HDRSAPPLS

There is another 3rd party tool for viewing the queues.WMQTool is free tool from niratul can be used to view all these information.

http://www.niratul.com/

Hope this helps....

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Brian
Beginner


Joined: 12 Aug 2003
Posts: 95
Topics: 6

PostPosted: Wed Apr 07, 2004 10:52 pm    Post subject: Reply with quote

An MQOPEN will not show you the actual message count. You need to do an explicit MQINQ with an MQIA_CURRENT_Q_DEPTH (this is offhand please) attribute to get the correct Q depth.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group