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 Cobol Copybook message

Post new topic  Reply to topic
 Parsing Cobol Copybook message « View previous topic :: View next topic » 
Author Message
KC
PostPosted: Wed Nov 05, 2008 9:10 am    Post subject: Parsing Cobol Copybook message Reply with quote

Newbie

Joined: 05 Nov 2008
Posts: 2

Hi
I am dealing with Cobol Copybook.I have created a Message Set from the copbook.I get message from Mainframe.The message consists of three parts.Header Record,Detail Records,Trailer Record.Each record is of fixed length. There is only one Header Record(starts with 1), there are multiple detail records(starts with 5),and then one trailer record(starts with 9).When I create message set by importing the cobol copybook,parsing fails at detail record.It takes the second record as detail record and third record(which is also detail record as it starts with 5) as trailer record.If I specify -1 as max lenght for detail record,it takes all records from 2nd as detail record.It also takes the last record which is trailer record (as it starts with 9) as detail record.Can anybody help me out.
Is there a way on the message set by which I can put the condition,if it starts with 1,treat it as Header,if it starts with 5 treat it as detail record, and if it starts with 9,treat it as Trailer record.
Thanks and Regards,
KC
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 05, 2008 9:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This is a classic TDS scenario. You should be using Tagged/Fixed Length if your records are not delimited and Tagged/Delimited otherwise.
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 » Parsing Cobol Copybook message
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.