|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sorting repeating rows from InputRoot |
« View previous topic :: View next topic » |
Author |
Message
|
pyrus |
Posted: Fri Apr 09, 2010 5:11 am Post subject: Sorting repeating rows from InputRoot |
|
|
 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 |
|
 |
pyrus |
Posted: Mon Apr 19, 2010 12:49 am Post subject: |
|
|
 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 |
|
 |
mrgate |
Posted: Mon Apr 19, 2010 2:15 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Apr 19, 2010 2:40 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|