Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ufqtp!bernhold From: bernhold@qtp.ufl.edu (David E. Bernholdt) Newsgroups: comp.lang.fortran Subject: Using END= and ERR= in READs Message-ID: <436@orange19.qtp.ufl.edu> Date: 22 Feb 89 00:22:18 GMT Reply-To: bernhold@qtp.ufl.edu (David E. Bernholdt) Organization: University of Florida Quantum Theory Project Lines: 21 I am writing a chunk of code in which I want to trap I/O errors. I use END= and ERR= specifiers to do this. Logic tells me that an end-of-file condition should be handled by an ERR= iff no END= is present. The '77 standard tells me that "The set of input/output error conditions is processor dependent." That seems to give someone the leeway to *not* handle end-of-files with ERR= if no END= is present, and (of course) I have a case in which this occurs (SunOS 3.4 f77). Can anyone tell me if this "hole" was intentional, or an oversight? If it was intentional, what is the logic? It seems rather inane to have to put in "END=8800, ERR=8800" into every READ statement. Dave -- David Bernholdt bernhold@qtp.ufl.edu Quantum Theory Project bernhold@ufpine.bitnet University of Florida Gainesville, FL 32611 904/392 6365