|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parsing Cobol Copybook message |
« View previous topic :: View next topic » |
Author |
Message
|
KC |
Posted: Wed Nov 05, 2008 9:10 am Post subject: Parsing Cobol Copybook message |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Nov 05, 2008 9:47 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|