Posted: Tue Mar 25, 2014 7:58 am Post subject: How to calculate character count for incoming DFDL message?
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.
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.
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