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 » Can this be done in the MRM?

Post new topic  Reply to topic
 Can this be done in the MRM? « View previous topic :: View next topic » 
Author Message
jgooch
PostPosted: Fri Dec 19, 2003 6:50 am    Post subject: Can this be done in the MRM? Reply with quote

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
View user's profile Send private message
wmqiguy
PostPosted: Mon Dec 22, 2003 7:05 am    Post subject: Reply with quote

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
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 » Can this be done in the MRM?
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.