Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (Keith Bierman - SPD Advanced Languages) Newsgroups: comp.lang.fortran Subject: Re: record length for direct access files Message-ID: Date: 25 Sep 90 18:30:45 GMT References: Sender: news@exodus.Eng.Sun.COM Organization: Sun MegaSystems Lines: 32 In-reply-to: mccalpin@perelandra.cms.udel.edu's message of 24 Sep 90 13:08:52 GMT In article mccalpin@perelandra.cms.udel.edu (John D. McCalpin) writes: Silicon Graphics revised the behavior of their Fortran compiler for direct access files in release 3.2 of their O/S to define the record length (RECL=NNN) in words rather than bytes. In explanation, the release notes state: "The ANSI standard states that the specified record lengths for unformatted direct access files must imply the number of words." This is untrue. Page 12-20 of X3.9-1978 clearly states ...the length is measured in processor-dependent units... ... issue, I decided to look it up in the new standard. From the Fortran-90 draft S8, version 112, section 9.3.4.5, discussing the RECL= parameter to the OPEN statment: "If the file is being connected for unformatted input/output, the length is measured in processor-dependent units." Which is necessary to make f90 a superset of f77. -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043