From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,425baf02a8b3026b X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,425baf02a8b3026b X-Google-Attributes: gidf678f,public From: kraemer@clri6f.gsi.de (Michael Kraemer) Subject: Re: Conversion of sequential unformatted files Date: 1999/11/12 Message-ID: <80hkga$5ck$1@sun27.hrz.tu-darmstadt.de>#1/1 X-Deja-AN: 547828462 References: <382C1FE0.54E29B8C@armoise.saclay.cea.fr> Organization: Technische Universitaet Darmstadt Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc In article <382C1FE0.54E29B8C@armoise.saclay.cea.fr>, Remi NAPOLEONE writes: > I'm trying to convert several types of unformatted files from > Cray machines (C90 and T3E) to ES40 machines. > Unformatted DIRECT-access files work well with "-convert big_endian" F90 > parameter or something equivalent with OPEN statement. > Unformatted SEQUENTIAL-access files seem to be more difficult. > Does anyone have a solution to this problem or some reference on the net ? You're talking about FORTRAN data files, right ? If I remember correctly sequential files are organized in records, with the record length as a binary 4-byte number attached before and after the data portion. This way the FORTRAN runtime can walk forth and back through data files consisting of data records with variable length.