Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!lll-crg!nike!ucbcad!ucbvax!SPCA.BBN.COM!gwalker From: gwalker@SPCA.BBN.COM (Gail Rubin Walker) Newsgroups: mod.computers.vax Subject: RMS question - testing for EOF Message-ID: <8611022239.AA01270@ucbvax.Berkeley.EDU> Date: Sun, 2-Nov-86 12:37:05 EST Article-I.D.: ucbvax.8611022239.AA01270 Posted: Sun Nov 2 12:37:05 1986 Date-Received: Tue, 4-Nov-86 01:45:21 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 15 Approved: info-vax@sri-kl.arpa 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