Have to do a sort. I would suggest reading the entries into memory (if there
aren't going to be a ton) and doing a memory sort. Or else use a different
file structure, like a KSAM file to get it indexed the way you want it.
Seamus Browne wrote:
> Circular files ...
> Ok I understand the principle of the circular file and I intend to use it
> for updating stats reports for users.
> Only one problem, new info is added at the bottom end of the file and the
> old info is squeezed out at the top.
>
> I would like the newest info to be at the top so the user can see it
> straight away
> and browse along down if he wants the older data.
>
> Anyone know a smart way of doing this without a SORT?
>
> TIA
> Seamus
> [log in to unmask]