Page 1 of 1

How to read a sequential file in reverse order

PostPosted: Wed Jan 23, 2008 2:06 pm
by nikhilgalgate
Hi,

Can any one post that is the cobol having the facility to read a sequential file(Other than on tape) in reverse order?. If not , is it possible??
:?

Thanks,

Re: How to read a sequential file in reverse order

PostPosted: Wed Jan 23, 2008 3:08 pm
by arunprasad.k
nikhilgalgate,

You can NOT read a sequential file in reverse order using COBOL read statement.

But that functionality is there in FileAid.

Use the following statement in SYSIN to copy that file in reverse order and then use the file in sequential mode in COBOl.

$$DD01 COPYBACK


Arun.