|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Size |
« View previous topic :: View next topic » |
Author |
Message
|
krustyelpayaso |
Posted: Tue Jan 24, 2006 7:30 am Post subject: Size |
|
|
Apprentice
Joined: 24 Oct 2005 Posts: 26
|
Hi,
i would like to know how i can get the size of the message of entry in a flow (by code ESQL)..... if it's possible.
Thanks |
|
Back to top |
|
 |
paustin_ours |
Posted: Tue Jan 24, 2006 8:26 am Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
|
Back to top |
|
 |
mgk |
Posted: Tue Jan 24, 2006 8:28 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
If the message domain is BLOB then length() will give you the length in bytes _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
krustyelpayaso |
Posted: Wed Jan 25, 2006 1:58 am Post subject: |
|
|
Apprentice
Joined: 24 Oct 2005 Posts: 26
|
Unfortunately, It's not a BLOB message . The domain message is a XML. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Jan 25, 2006 2:16 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi krustyelpayaso,
You could just CAST it to BLOB and find out....its just a matter of a few lines of code....you can then continue with the XML message.
Regards. |
|
Back to top |
|
 |
mgk |
Posted: Wed Jan 25, 2006 2:18 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Well you have a choice. You can use ASBITSTREAM to turn the XML tree into a BLOB and call length on that, however this can be slow if you do it unnecessarily. Or you could change the input node domain to be BLOB, then you can call length() and use an RCD node or use create with parse to turn it from BLOB to XML after getting the length. Or change you design so you do not need to know the length, as I can't think of a good reason why you need to know this detail?
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|