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 IndexWebSphere Message Broker SupportHow to find the length of a message

Post new topicReply to topic
How to find the length of a message View previous topic :: View next topic
Author Message
WBI_user
PostPosted: Mon Dec 17, 2001 9:38 pm Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

I need to store the length of the incoming XML message into a database. In the dtabase node I have
DECLARE AA INTEGER;
SET AA=LENGTH(Root);

INSERT INTO Database.MSG_LENGTH(M_LENGTH)VALUES(AA);

However the column M_LENGTH is NULL.
MQSI trace shows that LENGTH(Root) is evaluated to NULL.

If I change
SET AA=LENGTH(Body);
the column M_LENGTH is zero.
MQSI trace shows that LENGTH(Body) is evaluated to 0.

What did I do wrong ?
Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Tue Dec 18, 2001 1:13 am Post subject: Reply with quote

Centurion

Joined: 26 Jun 2001
Posts: 103
Location: IBM IT Education Services, Germany

You must coompute the length of the bitstream of message, e.g.
SET L=LENGTH(BITSTREAM(InputBody));
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportHow to find the length of a message
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.