ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Message Size

Post new topic  Reply to topic
 Message Size « View previous topic :: View next topic » 
Author Message
offshore
PostPosted: Tue May 13, 2003 6:06 am    Post subject: Message Size Reply with quote

Master

Joined: 20 Jun 2002
Posts: 222

All,


Specs - Windows 2000 MQ 5.2.1 & 5.3
z/OS - MQ 2.1

Is there a way to determing message size of a message being passed or that is sitting in a queue?

We're in the process of upgrading to MQ for z/OS 5.3 and wanting to implement Queue Sharing groups. Its my understanding that message size is limited to 63K?

Thanks!
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Tue May 13, 2003 10:38 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Well, one trick I've used in the past is the following:
Do an MQGET providing a zero byte buffer for the message, and make sure that the GMO options are set such that you won't accept truncated messages. Presumably all the messages on the queue have *some* content, so they will all be too big for your buffer. The MQGET will fail, but you will have an MQMD structure with the size of the message in it, whereas the message itself is still on the queue.
Repeat this for every message on the queue, and you can get the size of them all. You can achieve the same effect by browsing all of the messages, but this is much slower since you are actually filling all your datastructures with the message content, whereas nothing needs to be loaded into memory if the queue manager sees that your buffer isn't big enough on an MQGET call.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
eknathv
PostPosted: Tue May 13, 2003 10:29 pm    Post subject: Re: Message Size Reply with quote

Apprentice

Joined: 14 Aug 2002
Posts: 27
Location: Bangalore

Hi,
As Brandon suggested thats the very smart way to find message lenghth of any message in queue.
If you are looking for Max Message length of a queue that you can get by MQSC command or MQINQ call.
On MQSeries V5 and above max msg length is 100mb. if you are doing queue sharing I beleive max msg length could be 100mb.
Regards,

Eknath
_________________
Eknath Vashishtha
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Message Size
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.