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
How do we get current date from system with century in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do define dynamic array in cobol.
how do you reference the variable block file formats from cobol programs
how to refer the data field?
how to convert the recors form vsam file to db2 table tru file aid
What are the cobol coding sheets?
What are literals?
What is the problem of ordered sequential files access?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
How do you reference the following file formats from cobol programs?
what is the difference between COBOL2 AND COBOL390?
What is the difference between Call and a Link?
What is rmode(any) ?