home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
- From: jlg@cochiti.lanl.gov (J. Giles)
- Subject: Re: extra 8 bytes
- Message-ID: <1992Nov17.200054.22236@newshost.lanl.gov>
- Sender: news@newshost.lanl.gov
- Organization: Los Alamos National Laboratory
- References: <1992Oct20.204145.27333@uceng.UC.EDU> <1e8i03INNecd@corax.udac.uu.se>
- Date: Tue, 17 Nov 1992 20:00:54 GMT
- Lines: 28
-
- In article <1e8i03INNecd@corax.udac.uu.se>, l@chiron.astro.uu.se (Lars Kamel) writes:
- |> I have had the same problem when programming on a VAX/VMS system. Based on
- |> my expirence, I propose that you change your code to (if your compiler
- |> allows it):
- |> open( 10, file=file1, form='unformatted', recordtype='fixed',
- |> + access='direct', recl=1000)
- |> write( 10, rec=1) (real(i),i=1,1000)
-
- Please not that the above conforms to the standard with two exceptions:
-
- 1) the `recordtype' specifier is not standard
-
- 2) technically, the standard only accepts upper case letters ;-)
-
- On most implementations, you can use lower case. On most applications,
- the record length information is not written to disk for direct access
- files. Few implementations hav the recordtype specifier.
-
- Note that a standard conforming implementation is not *required* to
- omit the record length marks for direct access files. It's just that
- most of them do. If yours doesn't, you'll have to write a non-Fortran
- filter to get rid of them after Fortran is done.
-
- This subject *should* be covered in the FAQ for this newsgroup. So
- far I've not seen one consistently posted though.
-
- --
- J. Giles
-