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 » Better ESQL

Post new topic  Reply to topic
 Better ESQL « View previous topic :: View next topic » 
Author Message
Jenney
PostPosted: Thu Sep 13, 2007 6:11 am    Post subject: Better ESQL Reply with quote

Voyager

Joined: 25 Apr 2007
Posts: 83
Location: Melbourne

HI All,

I have a flow TDS to XML conversion with about 400 fields, is there a better way to convert the fields than esql typing one field by field. I tired mapping node and it gives me error for the data format TDS1 cannot be converted to XML1.

Just looking for some fresh ideas.

Thanks

Jen
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 13, 2007 6:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

At some point, you have to end up mapping fields individually.

The Mapping editor is designed to make this very easy, and it will do smart things for you. So you should probably spend some more time trying to figure out why it isn't working.

But if the data is in the same message definition, just a different physical format... then you can use an RCD to change the MRM parser used.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Sep 13, 2007 6:26 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Another alternative is the ESQL select statement, depending on how close the formats are.

But if they're very close the mapping node shouldn't be having trouble
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Jenney
PostPosted: Thu Sep 13, 2007 6:40 am    Post subject: Reply with quote

Voyager

Joined: 25 Apr 2007
Posts: 83
Location: Melbourne

Data is in different message defination, but same format i.e. date is same format, string and so.

Sure i'll try that.

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 13, 2007 6:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Are the fields named similarly? Is the logical structure of the two messages close?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Jenney
PostPosted: Thu Sep 13, 2007 6:58 am    Post subject: Reply with quote

Voyager

Joined: 25 Apr 2007
Posts: 83
Location: Melbourne

Mostly they are similar, but we can make them similar, structures are little different as XML message has extra fields than TDS
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 13, 2007 7:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If the logical structure is similar, and the names are similar, you can write some ESQL to walk the input message by reference, and build the output message - possibly using stuff to transform the FIELDNAME of the input reference into the right thing for the NAME of the output reference.

But the mapping node is going to be clearer, easier to maintain, and easier to use.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Jenney
PostPosted: Thu Sep 13, 2007 7:18 am    Post subject: Reply with quote

Voyager

Joined: 25 Apr 2007
Posts: 83
Location: Melbourne

thanks, this really helped, i'll try that
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 » Better ESQL
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.