Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!rutgers!att!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: comp.lang.fortran Subject: Re: ERR= and END= Summary: machine dependent? Message-ID: <3234@ttrdc.UUCP> Date: 1 Mar 89 01:08:13 GMT References: <2291@unmvax.unm.edu> <91480@sun.uucp> Distribution: usa Organization: AT&T, Skokie, IL Lines: 22 In article <91480@sun.uucp>, khb%fatcity@Sun.COM (fatcity) writes: < do i = 1, max < read(ilun,'(your format)',IOSTAT=istat) your variable list < if (istat .EQ. EOF) then < EXIT < else if (istat .NE. OK) then < call abort('your favorite abort messages',istat) < endif < your processing goes here < end do Nice idea, but isn't it kind of environment dependent? Like, where does the value of the EOF parameter come from? < If one doesn't have EXIT, goto label works just fine. Or STOP. -- Daniel R. Levy UNIX(R) mail: att!ttbcad!levy AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.