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 » how to parse this mesage using TDS

Post new topic  Reply to topic
 how to parse this mesage using TDS « View previous topic :: View next topic » 
Author Message
leo.yue
PostPosted: Fri Mar 31, 2006 4:31 am    Post subject: how to parse this mesage using TDS Reply with quote

Acolyte

Joined: 20 Oct 2004
Posts: 52

Here is a message like this:

Quote:
<CR><LF>01 CCCC DDDD
<CR><LF>02
<CR><LF>01 CED EEEE FFFF
<CR><LF>02 ONE TWO THREE
<CR><LF>03

transform into

Quote:
<Msg>
<first>
<char>CCCC</char>
<char>DDDD</char>
</first>
<first>
<pre>CDE</pre> /* CDE is variable length (1-3)*/
<char>EEEE</char>
<char>FFFF</char>
</first>
<second>ONE TWO THREE</second>
</Msg>


Many Many thanks
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Apr 05, 2006 12:20 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

First create a complex type which is delimited by <CR><LF>

within this complex type use data pattern to parse the elements..
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Apr 06, 2006 12:16 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Is the delimiter (between CCCC and DDDD, between CED and EEEE etc ) always a single space character? If so, you don't need to use Data Patterns. This is just a Tagged Delimited outer structure containing an All Elements Delimited inner structure.
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 » how to parse this mesage using TDS
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.