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 » IBM MQ Installation/Configuration Support » How Can I Know the size of my message with QMGet?

Post new topic  Reply to topic
 How Can I Know the size of my message with QMGet? « View previous topic :: View next topic » 
Author Message
Artemio
PostPosted: Tue Oct 28, 2003 3:40 pm    Post subject: How Can I Know the size of my message with QMGet? Reply with quote

Novice

Joined: 11 Sep 2003
Posts: 21

I need to know What size is the original message when I extract message of my Queue with MQRO_COA_WITH_DATA?????
Back to top
View user's profile Send private message Send e-mail MSN Messenger
LuisFer
PostPosted: Wed Oct 29, 2003 6:12 am    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

The DataLen subparameter of the MQGET returns this value.
CALL MQGET(HCON,HOBJGET,MSGDESCGET,GETMSGO,BFERLEN,MENSAJE,
DATALEN,COMPCOD,REASON);
Back to top
View user's profile Send private message
Artemio
PostPosted: Wed Oct 29, 2003 8:35 am    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Novice

Joined: 11 Sep 2003
Posts: 21

LuisFer wrote:
The DataLen subparameter of the MQGET returns this value.
CALL MQGET(HCON,HOBJGET,MSGDESCGET,GETMSGO,BFERLEN,MENSAJE,
DATALEN,COMPCOD,REASON);


Yes, but when I hace this option "MQRO_COA_WITH_DATA" make a report of message with only 100 bytes of Message original, and I need to know what size is the original message without the another option "MQRO_COA_WITH_FULL_DATA"
Back to top
View user's profile Send private message Send e-mail MSN Messenger
LuisFer
PostPosted: Wed Oct 29, 2003 9:14 am    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

Hi Artemio:
Sounds than in the other side ,there is a V5.2 (¿¿on MVS, OS/390,z/OS??).
If that is , the MQ not support the report with full_data, on V5.3 is fully supportted.
In spanish:

Suena a que es una version inferior a la V5.3 en os/390 y el report con full data esta limitado a 100 Bytes.
Back to top
View user's profile Send private message
Artemio
PostPosted: Wed Oct 29, 2003 10:22 am    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Novice

Joined: 11 Sep 2003
Posts: 21

Thanks LuisFer!

No esta limitado, pero lo que si necesito obtener es un reporte con el tamaño del mensaje del cual salio, el problema es que los mensajes que generan reporte es de 100M y generar los reportes con FULL_DATA no es factible y lo que pretendo es obtener un reporte acerca de este mensaje donde pueda saber su tamaño original
Back to top
View user's profile Send private message Send e-mail MSN Messenger
LuisFer
PostPosted: Wed Oct 29, 2003 9:03 pm    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

Artemio:
Please, write your msgs in english into the forum , because more people can help you.
If you want you can send to me a private msg & we talk in spanish.

Well, I will see the manuals newly about report to help you. I'm very interesting in Reports

LuisFer.
Back to top
View user's profile Send private message
LuisFer
PostPosted: Wed Oct 29, 2003 9:54 pm    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

Hi Artemio:
I think that the OriginalLength field of the MQMD should can help you.
I don't probe it.
MQSeries Application Programming reference (V5.2) pag. 156.
I hope that it help you.
LuisFer.
Back to top
View user's profile Send private message
Artemio
PostPosted: Thu Oct 30, 2003 6:22 pm    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Novice

Joined: 11 Sep 2003
Posts: 21

The field OriginalLength
works only with segmented messages.

thanks
Back to top
View user's profile Send private message Send e-mail MSN Messenger
LuisFer
PostPosted: Thu Oct 30, 2003 9:56 pm    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

I think that Leonid has reason with this trick
LuisFer

You need to do some trick to reach this.
There is a field in MQMD_V2 that called OriginalLength.
If you send regular message with option MQRO_COA_WITH_DATA then
this field get value MQOL_UNDEFINED.
The reason - it works only with segmented messages.
So you need to set your message as the only segment in a message.
Hope this helps.
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist
Back to top
View user's profile Send private message
Artemio
PostPosted: Mon Nov 03, 2003 9:58 am    Post subject: Re: How Can I Know the size of my message with QMGet? Reply with quote

Novice

Joined: 11 Sep 2003
Posts: 21

Thanks! LuisFer

It's work perfectly!

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

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How Can I Know the size of my message with QMGet?
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.