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 » Query on TDS Message format -- MB5.0.

Post new topic  Reply to topic
 Query on TDS Message format -- MB5.0. « View previous topic :: View next topic » 
Author Message
sarathsps
PostPosted: Thu Jun 22, 2006 9:19 am    Post subject: Query on TDS Message format -- MB5.0. Reply with quote

Novice

Joined: 04 May 2006
Posts: 19

Hi ,

I am using MB5.0.

I am having a XML as a input message and parsing it using a MRM parser using a XML message set.

The XML structure is like this

<Product>
<Item>
<dept>1 </dept>
<class>20 </class>
<subclass>300</subclass>
</Item>
<Item>
<dept>2 </dept>
<class>21 </class>
<subclass>301</subclass>
</Item>
<Item>
<dept>3</dept>
<class>22 </class>
<subclass>302</subclass>
</Item>
</Product>

In my ESQL i am concatnating all the dept values , all the class values and all the subclass values with a delimiter ,

The output i need to achieve is

DEPT = 1,2,3
CLASS =20,21,22 and subclass = 300,301,302

I can still use string manipulation functions in ESQL to do it. In the realtime we are expecting thousands of Items and doing a string manipulation will be a overhead.
So i am thinking to achive the same by having a seperate TDS message with the delimiter ,.
In the ESQL i need to use the message set for concatenating the values.

Please let me know if it is feasible, if feasible please give some direction for me to proceed.

Thanks in advance, Partha
Back to top
View user's profile Send private message
dsriksha
PostPosted: Thu Jun 22, 2006 1:10 pm    Post subject: Re: Query on TDS Message format -- MB5.0. Reply with quote

Voyager

Joined: 27 Feb 2005
Posts: 95

Yes. There are so many examples already described in this forum on TDS messages. Search for TDS messaages that start with tags.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Tue Jun 27, 2006 12:28 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You will need two message sets containing two different message definitions

1) Parse the input message using message set 1 ( MRM XML format )
2) Map the input logical structure to the output logical structure
3) Write the output message using message set 2 ( MRM TDS format )

For 2), you can either use a mapping node, or write some ESQL to contruct the output tree.
Back to top
View user's profile Send private message
sarathsps
PostPosted: Wed Jul 12, 2006 12:49 pm    Post subject: Reply with quote

Novice

Joined: 04 May 2006
Posts: 19

Hi Kimbert,

Thanks for your direction.

I am not constructing Output XML message insted i need to concatenate the values and pass it as a input parameter of the Db2 Stored Procedure.

For achieving that in the ESQL i need to make use of the TDS message set for concatenation inside the ESQL code.

Please help and let me know how can i proceed.

Thanks, Partha.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jul 13, 2006 12:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Read the documentation about the ASBITSTREAM function ( or search for ASBITSTREAM in this forum ).
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 » Query on TDS Message format -- MB5.0.
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.