How to read a PS file in reverse order?

Posted by Raja Reddy on Stack Overflow See other posts from Stack Overflow or by Raja Reddy
Published on 2010-03-28T12:45:31Z Indexed on 2010/03/28 12:53 UTC
Read the original article Hit count: 641

Filed under:
|
|

I have a PS file to be read in reverse order and process accordingly. Do we have a way to mention to read the file in reverse order in FD in COBOL module? OR do we have something to achieve the same using SORT?

Note: Reading the records into a buffer (array) and using it in reverse order would be the first idea that comes to mind but that way doesnt work for file with millions of records.

Your suggestions will be appreciated.

© Stack Overflow or respective owner

Related posts about mainframe

Related posts about cobol