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 » WebSphere Message Broker (ACE) Support » Size

Post new topic  Reply to topic
 Size « View previous topic :: View next topic » 
Author Message
krustyelpayaso
PostPosted: Tue Jan 24, 2006 7:30 am    Post subject: Size Reply with quote

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
View user's profile Send private message
paustin_ours
PostPosted: Tue Jan 24, 2006 8:26 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

LENGTH()
Back to top
View user's profile Send private message Yahoo Messenger
mgk
PostPosted: Tue Jan 24, 2006 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
krustyelpayaso
PostPosted: Wed Jan 25, 2006 1:58 am    Post subject: Reply with quote

Apprentice

Joined: 24 Oct 2005
Posts: 26

Unfortunately, It's not a BLOB message . The domain message is a XML.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Jan 25, 2006 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mgk
PostPosted: Wed Jan 25, 2006 2:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » 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.