|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can this be done in the MRM? |
« View previous topic :: View next topic » |
Author |
Message
|
jgooch |
Posted: Fri Dec 19, 2003 6:50 am Post subject: Can this be done in the MRM? |
|
|
 Acolyte
Joined: 29 May 2002 Posts: 63 Location: UK
|
Folks,
I've not used the MRM a huge amount, so forgive me if this is really simple, but can I use the MRM to parse a message with the following structure?
Quote: |
field1,field2,field3,field4,field5,field3,field4,field5,field3,field4,field5<cr><lf>
field1,field2,field3,field4,field5,field3,field4,field5,field3,field4,field5<cr><lf>
field1,field2,field3,field4,field5,field3,field4,field5,field3,field4,field5<cr><lf>
... |
i.e. it's got two repeats in. At the front of each line is some general information and then there's a set of fields that repeat a fixed number of times. All of this is separated by commas. This format is itself repeated each line (ie separated by carriage return and line feed).
I hope I've explained that clearly enough
I've looked in the manual, but it's not too clear to me how I go about defining the compound message. Ultimately, I want to map it to XML along the lines of:-
Quote: |
<wrapper>
<arthur>
<generalInfo><tag1>field1</tag1><tag2>field2</tag2></generalInfo>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
</arthur>
<arthur>
<generalInfo><tag1>field1</tag1><tag2>field2</tag2></generalInfo>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
<fred><tag3>field3</tag3><tag4>field4</tag4><tag5>field5</tag5></fred>
</arthur>
...
</wrapper> |
J. |
|
Back to top |
|
 |
wmqiguy |
Posted: Mon Dec 22, 2003 7:05 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
Yes, it can. Sounds like you need to use TDS. For a short example of TDS, take a look at the ID05 Support Pac. It has a couple of examples that look like they mirror your situation pretty closely.
Good Luck!  |
|
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
|
|
|
|