Author |
Message
|
Artemio |
Posted: Tue Oct 28, 2003 3:40 pm Post subject: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
LuisFer |
Posted: Wed Oct 29, 2003 6:12 am Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
Artemio |
Posted: Wed Oct 29, 2003 8:35 am Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
LuisFer |
Posted: Wed Oct 29, 2003 9:14 am Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
Artemio |
Posted: Wed Oct 29, 2003 10:22 am Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
LuisFer |
Posted: Wed Oct 29, 2003 9:03 pm Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
LuisFer |
Posted: Wed Oct 29, 2003 9:54 pm Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
Artemio |
Posted: Thu Oct 30, 2003 6:22 pm Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
The field OriginalLength
works only with segmented messages.
thanks |
|
Back to top |
|
 |
LuisFer |
Posted: Thu Oct 30, 2003 9:56 pm Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 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 |
|
 |
Artemio |
Posted: Mon Nov 03, 2003 9:58 am Post subject: Re: How Can I Know the size of my message with QMGet? |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
Thanks! LuisFer
It's work perfectly!
 |
|
Back to top |
|
 |
|