Page 1 of 1

Need to check for batch header which is record 5

PostPosted: Mon Mar 01, 2010 6:12 pm
by ranisupriya
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.

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

PostPosted: Tue Mar 02, 2010 1:27 am
by dick scherrer
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.