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 » How to calculate character count for incoming DFDL message?

Post new topic  Reply to topic
 How to calculate character count for incoming DFDL message? « View previous topic :: View next topic » 
Author Message
ethan_1988
PostPosted: Tue Mar 25, 2014 7:58 am    Post subject: How to calculate character count for incoming DFDL message? Reply with quote

Novice

Joined: 07 Feb 2014
Posts: 16

I have incoming message in inputroot.DFDL.[>] and i want to calculate character count(including paddings).i tried length function and tried to cast input message to char but it goes with the null values. i ll appriciate any help.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 25, 2014 8:33 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I have incoming message in inputroot.DFDL.[>]
You don't really. You have a message tree that was created from your incoming message.
If you want to get the length of the incoming message then the best option is to use ASBITSTREAM. If you call ASBITSTREAM before any changes are made to the message tree then it will simply return the bytes of the input document. If you need to count characters ( which is not always the same as counting bytes ) then you can CAST to CHARACTER and measure the length of the resulting string.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » How to calculate character count for incoming DFDL 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.