Need to check for batch header which is record 5



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Need to check for batch header which is record 5

Postby ranisupriya » Mon Mar 01, 2010 6:12 pm

I need to read a file which is like

5200....
622...
710.....
712....
715....
627...
622...
710...

I need to check for batch header which is record 5 (starting from 5 ) then within that I need to check for detail reocrd 6
if it is not followed by addenda record 7 then I need to write that detail record 6 into a new file and rest in a different file.
Could you please help me how to do that.
ranisupriya
 
Posts: 2
Joined: Fri Sep 18, 2009 8:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need to check for batch header which is record 5

Postby dick scherrer » Tue Mar 02, 2010 1:27 am

Hello,

Suggest you design pseudo code to accomplish this. Post the pseudo code and someone here will be able to help you if there are problems.

Once the pseudo code looks like it will work, actual code can be written from the pseudo code.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post