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 are the access modes of START statement?
Can we redefine the field of x(200) to less than 200?
Define cobol?
Explain about different table spaces.
how to access the file from prodution from changeman tool and to submit a file to production
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How do you reference the following file formats from cobol programs?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Mention the guidelines to write a structured cobol program?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How are the next sentence and continue different from each other?
What is the difference between PIC 9.99 and PIC9v99?
how do you reference the ksds vsam file formats from cobol programs
How to use the same COBOL program in Batch and CICS on lines? explain with an example