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 Purpose of Pointer in the string?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is comp-1 and comp-2?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Can we change the password using ALTER? anyone tried and changed?
How to print 10 to 1 if the input have only 10 digit number?
What are the pertinent COBOL commands?
What are the different open modes available in cobol?
Can a Search can be done on a table with or without Index?
How do you define a variable of comp-1 and comp-2?
Difference between array and sub-script ?
Explain the configuration section of a cobol program with examples of syntax.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between structured cobol programming and object alternativelyiented cobol?
how to convert the recors form vsam file to db2 table tru file aid