|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with tagged message |
« View previous topic :: View next topic » |
Author |
Message
|
artykito |
Posted: Tue Jul 20, 2010 5:03 am Post subject: |
|
|
Apprentice
Joined: 24 Jun 2010 Posts: 33
|
Hi all,
I'm checking the Tagged fixed length sample. It's excellent, but I have a doubt, because I have a similar requirement.
For example, imagine the Optional record can be from 1 to unbounded. And our input is something like:
Quote: |
10AABB\r\n
10CCDD\r\n
11EEFF\r\n
11VVRR\r\n
10GGHH\r\n
11XXYY\r\n
11ZZWW\r\n
10KKLL\r\n |
So, the output mus be something like:
Quote: |
10AABB\r\n
10CCDD\r\n11EEFF\r\n11VVRR\r\n
10GGHH\r\n11XXYY\r\n11ZZWW\r\n
10KKLL\r\n |
Is this possible? because I'm trying to do that and always have a bad parsed message... because as Optional has multiple occurs, is like the parser don't know when must stop.
The result I'm getting is something like:
Quote: |
10AABB\r\n
10CCDD\r\n11EEFF\r\n11VVRR\r\n10GGHH\r\n11XXYY\r\n11ZZWW\r\n10KKLL\r\n |
or:
Quote: |
10AABB\r\n10CCDD\r\n11EEFF\r\n11VVRR\r\n10GGHH\r\n11XXYY\r\n11ZZWW\r\n10KKLL\r\n |
I think is because the parser can't identify the tags, and my doubt is if this is because of the multiple occurs for that Optional record, or if the mistake is that I don't really know how to do that... |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jul 20, 2010 12:16 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Are you trying to model the same message as satya2481?
Quote: |
For example, imagine the Optional record can be from 1 to unbounded. |
What 'Optional record'? You must not assume that we are familiar with the sample that you are working with - we're doing this for free, so you need to supply all the details for us. |
|
Back to top |
|
 |
artykito |
Posted: Tue Jul 20, 2010 10:53 pm Post subject: |
|
|
Apprentice
Joined: 24 Jun 2010 Posts: 33
|
|
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
|
|
|
|