Re: Block IO question for RMS files ... Detecting EOF for empty file with deleted records...

From: Dann Corbit (dcorbit_at_connx.com)
Date: 05/30/03


Date: Fri, 30 May 2003 10:12:46 -0700


"Chris Sharman" <chris.sharman@sorry.nospam> wrote in message
news:bb7ftf$4h0$1$8300dec7@news.demon.co.uk...
> Larry Kilgallen wrote:
> > In article <bb6hbl01s6q@enews3.newsguy.com>, "Dann Corbit"
<dcorbit@connx.com> writes:
> >
> >
> >>>>But in this case, the seek is returning 65537.
> >>>
> >>>That is a normal status - it did what you asked of it.
> >>
> >>I know what it means. But it is a lie. The function says it read a big
> >>block of data, but the file is empty.
> >
> >
> > But didn't you say this was an indexed file ?
> >
> > On an indexed file, block IO will read the metadata.
>
> The easy way (to test for empty) is to use sys$get or sys$find !
> Depending what you want to do, you could alternatively check out Hein's
> rms_tune_check, available as freeware (with source), very nice,
> discussed here recently. Understands RMS indices pretty well - they're
> complex, & it took Hein a few goes to get all bases covered.

Thanks! I found it.

-- 
C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
 "The C-FAQ Book" ISBN 0-201-84519-9
C.A.P. FAQ: ftp://cap.connx.com/pub/Chess%20Analysis%20Project%20FAQ.htm