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 » TDS to XML - Delimiter in Quoted String

Post new topic  Reply to topic
 TDS to XML - Delimiter in Quoted String « View previous topic :: View next topic » 
Author Message
migerrits
PostPosted: Wed Aug 30, 2006 10:08 am    Post subject: TDS to XML - Delimiter in Quoted String Reply with quote

Apprentice

Joined: 13 Dec 2002
Posts: 35
Location: Canada

My input data is BLOB delimited by the "|" character and converts quite nicely on the broker from BLOB to TDS and XML formats. Well, most of the time it does.

Records are simple lines of the same layout on each line.

My pain comes here: I've found a few fields that contain the "|" character within a quoted string, where the field contents are underlined:

"abc|123"

The source application apparently does this because it doesn't like the "|" character either.

The Broker ignores the quotes ( " ) and splits this field into abc and 123 when it should stay as "abc|123".

I'm having trouble finding where in my Message Set that I need to change it in order to not ignore the quotes.

I am being given the data and cannot have this changed before it gets to me.

Thanks!

-mike
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 30, 2006 10:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This is a common problem with CSV models (comma separated values), where there are embedded delimiters that need to be ignored.

There are CSV samples that go over how to model this successfully in the v6 Samples Gallery.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
migerrits
PostPosted: Wed Aug 30, 2006 10:45 am    Post subject: Reply with quote

Apprentice

Joined: 13 Dec 2002
Posts: 35
Location: Canada

I'm using V5, by the way.

I've been hoping for a "clean" way of accomplishing this but haven't found it yet.

I have thought about replacing the unwanted pipe symbol with a space in my initial BLOB, since it's really just a free-form user description field. However, since the pipe symbol is also my field delimiter, this isn't a simple thing to try to do.

I have tried different options in my Message Set without much luck.

"Surely," thought I, "the Message Set can be made to understand that a quoted string means that you don't look inside it for any special characters?" I hope I'm not proved wrong.

-mike
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Aug 30, 2006 12:57 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The message broker team are aware that this is a common requirement, and they agree that it ought to be fixed. That's why the samples gallery shows how to work around the problem in v5/v6.
Back to top
View user's profile Send private message
migerrits
PostPosted: Thu Aug 31, 2006 8:01 am    Post subject: Reply with quote

Apprentice

Joined: 13 Dec 2002
Posts: 35
Location: Canada

Drat. I'll have to install the examples now.

Thanks!

-mike
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 » TDS to XML - Delimiter in Quoted String
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.