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 difference between next sentence and continue in cobol programing language?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
what happens if parmparameter passes zero bytes to the program
Differentiate between structured cobol programming and object-oriented cobol programming.
Explain how you can characterize tables in cobol?
Describe the cobol database components?
explain sorting techniques in cobol program?
What is a report item?
What is comp-1 and comp-2?
How do u write test cases?
Name the divisions, which are available in a cobol program?
What are the access modes of START statement?
What are literals?
In COBOL, what is the different between index and subscript?