Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!husc6!rice!sun-spots-request From: pmurphy@bass.tuc.nrao.edu (Pat Murphy) Newsgroups: comp.sys.sun Subject: Re: sun-spots fortran "blanks" program Keywords: SunOS Message-ID: <4110@kalliope.rice.edu> Date: 23 Jun 89 15:31:27 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 17 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 49, message 4 of 11 ANSI X3.9-1978 FORTRAN 77, page 12-12 (full language, not subset): "If the unit specifier [in a format statement] specifies an internal file, the control information list must contain a format identifier other than an asterisk..." Try using something like: read (string, fmt='(a)', err=999) temp If you do this both on the terminal input and the internal read, you should not have to enter the initial string in quotes either. Pat Murphy, Nat'l Radio Astronomy Observatory pmurphy@nrao.edu, pmurphy@bass.tuc.nrao.edu ...!uunet!nrao.edu!pmurphy (602) 882-8250