My file will be having as given below:
HFILENAMEBEJGB2.X186625.TENS.D131217.TEST1
D00000450000065GLBCB01**********
T00000000200000000020
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?