[mod.computers.vax] RMS question - testing for EOF

gwalker@SPCA.BBN.COM (Gail Rubin Walker) (11/02/86)

Maybe I've just overlooked it in the RMS manual, but is there
a way of testing for EOF other than trying to read the next record?
In this case, I'm reading a normal VMS text file (record type Variable,
with implied carriage returns) using the RMS $GET function.
And I do know the file length. Is there a way to get current file
position to test against the length? Or a way to find out if I'm
at EOF directly? 

I could do another $get and test for EOF but if I'm not at EOF
then I have to somehow unget that record so a later i/o will read it
and this sounds like something I don't want to do. But IS there a
better way?

Thanks for any replies,
-- Gail Walker