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



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

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

Postby sange-sherin » Thu Jan 09, 2014 5:45 pm

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?
sange-sherin
 
Posts: 25
Joined: Thu Nov 21, 2013 6:56 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby NicC » Thu Jan 09, 2014 6:02 pm

read each record; keep a count of each record type;do whatever if not ok
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post