From: lionel@quark.enet.dec.com (Steve Lionel)
Subject: Re: Internal List Directed I/O
Date: 23 Feb 1994 18:23:16 GMT [thread overview]
Message-ID: <2kg6uk$iun@jac.zko.dec.com> (raw)
In-Reply-To: 37472@dog.ee.lbl.gov
In article <37472@dog.ee.lbl.gov>, ctday@randolf.lbl.gov (Christopher T. Day)
writes:
|>Can anyone tell me the ANSI standard status of list directed I/O (I in
|>particular)
|>from internal files in FORTRAN 77? Various processors are giving me different
|>interpretations. Microsoft PowerStation flags it as an error at compile
|>time. The
|>OSF/1 AXP system flags it as an error at run time. HP and Sun systems
|>don't have
|>any problem with the idea. I can't find anything in my FORTRAN 77 book
|>forbidding
|>it or allowing non-support as an option; I infer that it should be allowed. My
|>FORTRAN 90 book positively recommends it as an effective programming technique.
|>What's the official word? It's making ports a bit of a pain. (Short term, is
|>there a way to get the AXP system to accept the idea?) Thanks.
List-directed input from an internal file (and output to an internal file)
is an extension to Fortran 77 that is supported by all DEC Fortran
implementations. I tried it on a DEC OSF/1 AXP system and it worked as I
expected. If you're having a problem on that platform, please send me a
copy of the source, the version of DEC Fortran installed (from a listing
header), and a log showing the results.
Here's my test case:
$ cat ldx.f
CHARACTER*10 LINE
LINE = '12345'
READ (LINE,*) L
TYPE *,L
END
$ f77 -o ldx ldx.f
$ ldx
12345
--
Steve Lionel lionel@quark.enet.dec.com or
SDT Languages Group lionel@quark.zko.dec.com
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
next prev parent reply other threads:[~1994-02-23 18:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-02-23 17:25 Internal List Directed I/O Christopher T. Day
1994-02-23 18:23 ` Steve Lionel [this message]
1994-02-23 22:17 ` Bill Leonard
1994-02-24 11:34 ` Michael Lemke
1994-02-25 5:23 ` Robin Vowels
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox