From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,877b86c72a411142 X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,877b86c72a411142 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-26 06:43:40 PST Xref: gmd.de comp.sys.dec:13560 comp.lang.fortran:10337 Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!src.dec.com!crl.dec.com!jac.zko.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.sys.dec,comp.lang.fortran Subject: Re: Internal List Directed I/O Date: 23 Feb 1994 18:23:16 GMT Organization: Digital Equipment Corporation, Nashua NH Distribution: world Message-ID: <2kg6uk$iun@jac.zko.dec.com> References: <37472@dog.ee.lbl.gov> Reply-To: lionel@quark.enet.dec.com (Steve Lionel) NNTP-Posting-Host: QUARK Keywords: FORTRAN X-Newsreader: mxrn 6.18-10 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"