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 » Mapping CSV to a TDS Message Set

Post new topic  Reply to topic
 Mapping CSV to a TDS Message Set « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Wed Mar 15, 2006 1:48 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi ssk,

Are the fields fixed length....I don't suppose they are.

You will not be able to handle the comma between the fields, it will fail...

You could ask the sender of the message to convert the "," into some "#" and then after parsing, convert the "#" back to ","....

Or, define an extra field in the message set, and then concat then in the code naughty right, i just thought of it

Regards.
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Wed Mar 15, 2006 2:19 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi ssk,

I did not realise from your post that quotes were ACTUALLY part of the message.

I am not sure, but i guess you can make use of a combo of ," as the delimiter between the fields...and then trim the other ending "
I am not sure whether you can use two symbols as the delimiter, maybe put it between ' ' too

Regards.
Back to top
View user's profile Send private message Send e-mail
Mensch
PostPosted: Wed Mar 15, 2006 3:24 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2005
Posts: 166

u can use data patterns instead ..

follow the link
http://www.mqseries.net/phpBB2/viewtopic.php?t=23145&highlight=
_________________
Thanks and Regards ,
Mensch
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Mar 15, 2006 3:52 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Mensch,

Quote:
u can use data patterns instead ..

will effect performance
Quote:
must be as efficient as possible even though we are attempting to use TDS.


Regards.
Back to top
View user's profile Send private message Send e-mail
Mensch
PostPosted: Wed Mar 15, 2006 4:23 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2005
Posts: 166

yeah Elvis ..you are right .

But when the incoming message is tricky .. using data pattern is the most effecient way to develope message set

but there are other options like using different combinations of group indicator and group terminator .
_________________
Thanks and Regards ,
Mensch
Back to top
View user's profile Send private message
shanson
PostPosted: Wed Mar 15, 2006 6:08 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

WMB V6 has sample message sets for modelling several variations of CSV message, including where fields are in quotes. It shows you how to handle optional quotes and to strip/preserve them.
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 » Mapping CSV to a TDS Message Set
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.