sample code for read a 2nd record from last in flatfile how
can do?
Answer Posted / sunilkumar
First open the file in reverse order using OPEN command
OPEN FILE file-name REVERSE
Then read twice to get the 2nd last record.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is rmode(24)
How to remove 2 duplicate records and copy only one using job control language?
what is the use of outrecord?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Are you comfortable in cobol or jcl?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Write down the divisions of cobol program?
What is redefines clause in COBOL?
What is cobol?
what are decleratives in cobol?
what is difference between cobol and cobol/400
In which area will you utilize 88 level items in cobol?
What is comp-1 and comp-2?
What are the different types of condition in cobol and write their forms.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?