how would find total records in files using seqientional



how would find total records in files using seqientional..

Answer / guest

We can increment the count for each reading of record in a file.
Read file
count = count + 1
At end
display count

Is This Answer Correct ?    13 Yes 2 No

Post New Answer

More COBOL Interview Questions

01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


What is Comm?

2 Answers   IBM, Kemper Corporation,


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


What are the divisions in a cobol program?

1 Answers  


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,






The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


what is filler and what is use of filler

3 Answers   Syntel,


Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?

7 Answers  


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


How you can characterize tables in cobol?

0 Answers  


Categories