Hi,
In a sequential file, how to read and display the previous record from last?(How to code cobol program).
Plz note that i am not using CICS here. It is not an index file.
Printable View
Hi,
In a sequential file, how to read and display the previous record from last?(How to code cobol program).
Plz note that i am not using CICS here. It is not an index file.
you can go to the eof and after that come back 2 records. I am sure there might be some other way as well.
Probably you can copy the records from the original file in reverse order into another sequential file and then continue with your processing as described above