Page 1 of 1

check in the file for header,detail record,trailer record

PostPosted: Thu Jan 09, 2014 5:45 pm
by sange-sherin
Hi,

My file will be having as given below:
HFILENAMEBEJGB2.X186625.TENS.D131217.TEST1 
D00000450000065GLBCB01**********           
T00000000200000000020                       


i want to check in my program the file at least having one header , one detail record and one trailer record.

can anyone help me how to check in cobol?

Re: check in the file for header,detail record,trailer recor

PostPosted: Thu Jan 09, 2014 6:02 pm
by NicC
read each record; keep a count of each record type;do whatever if not ok