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 » Getting rid of extraneous delimiters in a output message

Post new topic  Reply to topic
 Getting rid of extraneous delimiters in a output message « View previous topic :: View next topic » 
Author Message
teller121
PostPosted: Fri Oct 27, 2006 11:58 am    Post subject: Getting rid of extraneous delimiters in a output message Reply with quote

Newbie

Joined: 27 Oct 2006
Posts: 4

I have modelled a TDS message set. Input file is XML and output file is a ~ delimited text file. If my XML file coming in has 6 out of 10 tags that I need, I need to supress the extra ~ characters that are generated.
Example XML:
<ab>
<tag1></tag1>
<tag2></tag2>
<tag3></tag3>
<tag4></tag4>
<tag5></tag5>
<tag6></tag6>
</ab>

The XML that I receive might have only 6 of the 10 tags that I have defined in my message set. When the message goes out, I get extrat ~ delimiters in the message.

The OUTPUT might look like this:
12~ab~1234~1~2.1~2.33~~~~~~

Is there a way to supress these extra delimiters in ESQL?

thanks,
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Oct 27, 2006 1:07 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Is there a way to supress these extra delimiters in ESQL?

I would try to do this in the message model before I tried to solve it using ESQL.
Which version of message broker are you using? There's a TDS property on complex types called 'Suppress Absent Element Delimiters'. It was added in one of the v5 CSDs, so it will be in v6 as well.
Back to top
View user's profile Send private message
teller121
PostPosted: Wed Nov 01, 2006 8:55 am    Post subject: changing in msg set worked...can this be done in ESQL Reply with quote

Newbie

Joined: 27 Oct 2006
Posts: 4

Thanks very much for the reply. I was able to change the message set and it worked. Is there a way to do this programatically in ESQL.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 01, 2006 9:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't have control over delimiters in ESQL - they're produced by the parser when it writes the bitstream.

You can control what fields are in the message tree, but that's it.

Or you can use the BLOB domain and adjust the delimiters after the message tree has been written to a bitstream.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Nov 01, 2006 1:41 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Is there a way to do this programatically in ESQL
I'm genuinely puzzled. Why would you want to?
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 » Getting rid of extraneous delimiters in a output message
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.