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 » capture the size of the Input message in bytes ?

Post new topic  Reply to topic Goto page Previous  1, 2
 capture the size of the Input message in bytes ? « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Wed Jun 03, 2009 4:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

AkankshA wrote:
like you, even my employer and his ppl comes and disturb in my posts a lot.... especially when i start drafting a reply...




Don't you just hate it when they do that? I offer you the sympathy of a fellow sufferer.

At least I've taught mine that any interuption containing the phase "WMQ's lost my message" is not to be made lightly.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 03, 2009 4:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

AkankshA wrote:
so ASBITSTREAM and then CHARACTER conversion with LENGTH shall do the trick but keep in minds that xml < > signs get counted as a byte and not &ls..... (something something) (which ll increase the count to 5 i guess)


So if you want actual payload length you'll need to determine how many tags you have, and the tag name length, and adjust the total from ABITSTREAM accordingly.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Jun 03, 2009 4:29 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Vitor wrote:
cvag wrote:
The Length of the Message....I dont have MQRFH2


But apparently without the tags?

Again I ask what for? What use is the length of the payload of an XML document? Or the length of an XML document come to that?

More information, better advice.


he he he.. .seems like u r in proper frame of mind and me in hush hus.. (which i actually am, time to leave my work place and go back to the place called HOME :p)

so have a good day folks
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
mgk
PostPosted: Wed Jun 03, 2009 5:14 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1647

If you only want the size of the message body, you can set the Domain on the MQInput node to BLOB and then use the LENGTH function in a compute node before using CREATE ... PARSE to turn it into thel XMLNSC domain. If you also need to know the MQMD size, well you are in luck as it is a fixed size, so you can add that on to the length. However, this is a fairly odd requirement...
_________________
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
cvag
PostPosted: Thu Jun 04, 2009 1:52 am    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

Thank u people..I got it...

DECLARE cInputBody CHARACTER;
SET cInputBody = CAST(ASBITSTREAM(InputBody ENCODING MQENC_NATIVE SET 'KA0M8L4002001' TYPE 'numbers' FORMAT
'XML1')AS CHARACTER CCSID 1208 );

SET MsgLength = LENGTH(cInputBody);


And am getting the orginal message bytes...thanks a lot...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » capture the size of the Input message in bytes ?
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.