|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
setting DFDL Length Kind Length in an unbounded PREFIXED typ |
« View previous topic :: View next topic » |
Author |
Message
|
bobbee |
Posted: Fri May 01, 2015 4:16 am Post subject: setting DFDL Length Kind Length in an unbounded PREFIXED typ |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri May 01, 2015 4:34 am Post subject: Re: setting DFDL Length Kind Length in an unbounded PREFIXED |
|
|
 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 |
|
 |
bobbee |
Posted: Fri May 01, 2015 4:49 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|