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 » setting DFDL Length Kind Length in an unbounded PREFIXED typ

Post new topic  Reply to topic
 setting DFDL Length Kind Length in an unbounded PREFIXED typ « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Fri May 01, 2015 4:16 am    Post subject: setting DFDL Length Kind Length in an unbounded PREFIXED typ Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

I have an unbounded complex type with a included prefix length of 4 bytes.

In each repeating element is a Header-Prefix (fixed length) and the variable data. The PREFIXED length includes the PREFIX complex type and the variable data.

So

Group (1:n)
Header-Prefix
field a
field b
field c
VARIABLE_DATA

I am trying to specify the length for the Variable data field. I cannot seem to define anything that is acceptable. A lot of times it comes down to the length functions want an array pointer (ie [1]. So what I need, I think, is:

Length (VARIABLE_DATA) = Length (GROUP (current position in array) - Length (PREFIX (current position in array). Any suggestions?
Back to top
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Fri May 01, 2015 4:34 am    Post subject: Re: setting DFDL Length Kind Length in an unbounded PREFIXED Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

bobbee wrote:
I have an unbounded complex type with a included prefix length of 4 bytes.

In each repeating element is a Header-Prefix (fixed length) and the variable data. The PREFIXED length includes the PREFIX complex type and the variable data.

So

Group (1:n)
Header-Prefix
field a
field b
field c
VARIABLE_DATA

I am trying to specify the length for the Variable data field. I cannot seem to define anything that is acceptable. A lot of times it comes down to the length functions want an array pointer (ie [1]. So what I need, I think, is:

Length (VARIABLE_DATA) = Length (GROUP (current position in array) - Length (PREFIX (current position in array). Any suggestions?

Have you tried length implicit? is that acceptable for the parsing of the next group?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bobbee
PostPosted: Fri May 01, 2015 4:49 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

Someone near and dear to me who is a GOD in the DFDL world looked at this and said "Define the segdata field (the variable field) as delimited.' That person got this working.

It sounds so logical but I would not have thought of that if you strapped it to Pluto and hit me with it. Hope this helps others. DELIMITED, just wild. Thinking about it it would be delimited, delimited by the PREFIX length I told it was up front.

Thanks for your input. BTW I did try all the combinations that were there, none worked.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » setting DFDL Length Kind Length in an unbounded PREFIXED typ
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.