Author |
Message
|
SKK |
Posted: Tue Oct 31, 2006 6:23 am Post subject: Delimiter in Variable Length Elements Delimited |
|
|
 Acolyte
Joined: 09 May 2005 Posts: 67
|
Hi,
We are using a message set with data element seperation as "Variable Length Elements Delimited" because we are using two different complex type. One complex type is Fixed Length (CWF) and other one is TDS. To use "Variable Length Elements Delimited" we have to specify the delimiter. Whereas we don't want delimiter between the two complex type. Is there anyother way to achieve this? _________________ Regards,
SKK |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 31, 2006 6:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What do the words "Variable Length Elements Delimited" mean?
Doesn't it seem reasonable that they mean "if an element is of a variable length, then there will be a delimiter that tells the parser where that element stops?"
Also, I hope you understand that you won't be able to put both of these complex types into the same message. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
SKK |
Posted: Tue Oct 31, 2006 6:43 am Post subject: |
|
|
 Acolyte
Joined: 09 May 2005 Posts: 67
|
Variable Length Elements Delimited: In a Variable Elements Delimited separation type (also known as Delimited and Fixed separation type) some elements are determined by their length, while others are delimited. It is really a combination of a delimited and a fixed length format, and follows rules associated with both. Lengths can be given and used, but they are not mandatory. _________________ Regards,
SKK |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 31, 2006 7:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Right.
If you have specified Lengths on every field in the type, which for TDS you wlil have to do *manually*, then you should not need to specify a delimiter. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Oct 31, 2006 8:00 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Hi SKK,
You need a model like this:
Code: |
Message
FixedLengthStructure [ DataElementSeparation=FixedLength]
child1 [ length = ...]
child2 [ length = ...]
DelimitedStructure [ DataElementSeparation=AllElementsDelimited Delimiter=;]
child3
child4
|
Note 1: ; was just a guess.
Note 2: All Elements Delimited not Variable Length Elements Delimited. VLED is hardly ever the right answer. It is intended for (very rare ) structures where some of the child elements are fixed-length and the rest are delimited. |
|
Back to top |
|
 |
SKK |
Posted: Tue Oct 31, 2006 9:58 pm Post subject: |
|
|
 Acolyte
Joined: 09 May 2005 Posts: 67
|
HI,
I have done exactly the same, I had created one complex type with "Fixed length" and other complex type as "All Elements Delimited", But when i try bring this complex types under message, it says "A structure must not have Data Element Separation "AllElementsDelimited' when its parent structure has Data Element Separation 'FixedLength". So in this case, i was forced to use " variable length elements delimited" _________________ Regards,
SKK |
|
Back to top |
|
 |
kimbert |
Posted: Wed Nov 01, 2006 1:15 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
SKK |
Posted: Wed Nov 01, 2006 1:34 am Post subject: |
|
|
 Acolyte
Joined: 09 May 2005 Posts: 67
|
Hi,
I have changed the Data Element Seperation to "All Elements Delimited" for root complex type. Now, i'm able to avoid the delimiter. Thanks for your help. _________________ Regards,
SKK |
|
Back to top |
|
 |
|