How to read the last 100 records from a COBOL file. The file
contains N number of records.
Answer Posted / kk
Hi,
u declare two count variable.first count all the
records.then using compute statement count - 100.now move
the count no to second one.now again use read at end.now
give the condition grater than count-2 display rec.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
What is the compute verb? How is it used?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
) how do u code after getting data?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to know whether the module is dynamical or statistical?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is a scope terminator give example?
What is redefines clause in COBOL?
Write some characteristics of cobol as means of business language.
What is the difference between binary search and sequential search?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Have you used comp and comp-3 in your project? And how?
What is the utilization of copybook in cobol?
For rewrite, why is it mandatory that file needs to be opened?