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 » Sorting repeating rows from InputRoot

Post new topic  Reply to topic
 Sorting repeating rows from InputRoot « View previous topic :: View next topic » 
Author Message
pyrus
PostPosted: Fri Apr 09, 2010 5:11 am    Post subject: Sorting repeating rows from InputRoot Reply with quote

Novice

Joined: 20 Jul 2007
Posts: 16
Location: Belgium

Hello,

I have been searching and trying for a while now and I can't seem to find the solution to my problem unless I code something really complicated which will probably not be very performant.

I receive a tab delimited message (MRM) and this contains only 2 different rows. One row is the header the other is a repeating detail row. These detail rows come in with a specific order and I want to order (asc/desc doesn't matter) or group them so that all rows with the same itemnumber are grouped.

e.g: if I get these itemnumbers 13232123 the result should be 11222333

Now I have tried to use a SELECT statement on my InputRoot but the normal SELECT statement in ESQL does not allow an ORDER BY/GROUP BY clause. I did find the solution to that, being the PASSTHRU function, unfortunately that only seems to accept actual databases to select from.... sigh...

Does anybody know of some way to do this with the supplied logic of the 6.1 broker? I don't want to write a complete new function for this unless I really need to.

The only other way I think might be kind of clean is mapping the MRM to the exact same MRM structure but using a mapping node and the sorting option within that.
Back to top
View user's profile Send private message
pyrus
PostPosted: Mon Apr 19, 2010 12:49 am    Post subject: Reply with quote

Novice

Joined: 20 Jul 2007
Posts: 16
Location: Belgium

It seems I always want to do things with the broker that aren't possible...

Many views, no respons.
Back to top
View user's profile Send private message
mrgate
PostPosted: Mon Apr 19, 2010 2:15 am    Post subject: Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

pyrus wrote:
Many views, no respons.


.......Means, write custom function for doing the same
_________________
MQSeries terrorist
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Apr 19, 2010 2:40 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I was assuming that someone else would comment that this has cropped up a couple of times recently. It seems to be open season for message tree sorting questions.

http://www.mqseries.net/phpBB2/viewtopic.php?t=53074

or if you prefer to use Java, try this:

http://www.mqseries.net/phpBB/viewtopic.php?p=205247&sid=3feb44fa1b0d39afd4ac30426b81d4d8
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 » Sorting repeating rows from InputRoot
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.