From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c3fcdc66ac0caf8c X-Google-Attributes: gid1164f8,public From: jspidel@csra.net (Jeffrey S. Pidel) Subject: Re: unformatted file conversion Date: 1996/04/05 Message-ID: <467cc$671d.1ca@news.csra.net>#1/1 X-Deja-AN: 146008935 references: ) newsgroups: comp.sys.dec sondak@galileo.res.utc.com (Doug Sondak ) wrote: DEC Fortran 77 has an option on the OPEN statement called "CONVERT" that allows you to change the input/output of data files that you work with. This are options little-endiad, big-endiad, vax-d, vax-g, etc. The Fortran run time will convert them on the fly. If you standardize on big-endiad (RS6000 format ?) for your unformatted data files you should be OK. You could not easily write a program to convert the files to RS6000 format unless you knew every variable type that was being written out and its offset in the file. >Although I am using an IBM workstation, I work closely with a >colleague who has a cluster of DEC Alpha workstations. We >generate unformatted files in our fortran code, but we can't >share these files due to the different binary formats on the >machines. (I routinely transfer files between IBM and SGI >workstations, but I assume that the DEC words have the bits >swapped compared to these machines.) >Does anyone have a utility to convert these files between the >two formats? I checked the DEC FAQ and the DEC web page, but >I didn't come up with anything. Thanks for any help you can >offer. >Doug Sondak >United Technologies Research Center >sondakdl@utrc.utc.com >(860) 727-2139