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 » Parsing

Post new topic  Reply to topic
 Parsing « View previous topic :: View next topic » 
Author Message
eshwarttf
PostPosted: Tue Jul 05, 2011 2:56 am    Post subject: Parsing Reply with quote

Novice

Joined: 12 Jan 2011
Posts: 11

Hi I have a txt document of data to be parsed into XML format , which contains data in table format say
EMPID SAL
1 22222
2 33333
3 44444
-followed by a line
total 99999. So the whole data is like

EMPID SAL
1 22222
2 33333
3 44444
total 99999

I have parsed the the empid and sal as repeating records using FIXED LENGTH, which has a group indicator 'EMPID SAL' . I have given 'total ' as terminator, so that remainin value is parsed as <total>.

What happens is , 'total ' is omiited and again 99999 is being parsed as EMPID and throws error as not enough data for SAL.

Should I have to use CHOICE or is there any other option?
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Tue Jul 05, 2011 5:16 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You should
- set Data Element Separation to 'Tagged Fixed Length' on the outermost complex type
- Use tags, not Group Indicators. Move the Group Indicator values to the Tag field on the elements, and delete the Group Indicator values.

Give that a try, and let us know how you get on.
Back to top
View user's profile Send private message
eshwarttf
PostPosted: Wed Jul 06, 2011 3:26 am    Post subject: Reply with quote

Novice

Joined: 12 Jan 2011
Posts: 11

I solved it

anuyways Thnx buddy..
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Parsing
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.