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 » Delimiter in Variable Length Elements Delimited

Post new topic  Reply to topic
 Delimiter in Variable Length Elements Delimited « View previous topic :: View next topic » 
Author Message
SKK
PostPosted: Tue Oct 31, 2006 6:23 am    Post subject: Delimiter in Variable Length Elements Delimited Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 31, 2006 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message
SKK
PostPosted: Tue Oct 31, 2006 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 31, 2006 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Oct 31, 2006 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message
SKK
PostPosted: Tue Oct 31, 2006 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Wed Nov 01, 2006 1:15 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Good point. I forgot that detail.
See http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ad09480_.htm

You need this:
Code:
Message [DataElementSeparation=Tagged Delimited  Tag Length=0]
    FixedLengthStructure [ DataElementSeparation=FixedLength]
        child1 [ length = ...]
        child2 [ length = ...]
    DelimitedStructure [ DataElementSeparation=AllElementsDelimited Delimiter=;]
        child3
        child4
Back to top
View user's profile Send private message
SKK
PostPosted: Wed Nov 01, 2006 1:34 am    Post subject: Reply with quote

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
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 » Delimiter in Variable Length Elements Delimited
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.