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

What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

0 Answers   IBM,


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  






COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.

3 Answers   IBM, Xansa,


what is the difference between perform varying and perform until

4 Answers   TCS,


how will u find out 3rd week's 2nd day using occurs ?

3 Answers   L&T,


What is length is cobol?

0 Answers  


The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it

3 Answers   ADP,


Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


Categories