From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,42a599b4e9a6e39a X-Google-Attributes: gid1164f8,public From: "Steve Lionel" Subject: Re: unformatted data conversion problem Date: 1998/11/03 Message-ID: <71n9pp$m7@usenet.pa.dec.com>#1/1 X-Deja-AN: 407959914 References: <363DE8DE.A88F6754@lanl.gov> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Compaq Computer Corporation - Nashua, NH Newsgroups: comp.sys.dec jim harsh wrote in message <363DE8DE.A88F6754@lanl.gov>... >I have a large number of data files that were written on VAX/VMS >with fortran as unformatted data, The data is floating point data. > >I have tried to use fortran on our alpha platform running DECUnix >to convert the data. I used the convert option for the open >staement and I have tried the convert option during compile. > >Neither work. If I do an OD before and after, nothing is changed, >regadless of the option used. > >If I try to manually swap the byte order, I can get can get close to >the proper values. > >Any ideas concerning the conversion of unformatted floating point data >from a VMS system to Unix floating point data? I can't figure out exactly what you tried. CONVERT='VAXD' (or 'VAXG'. perhaps) should be sufficient to convert the data, as long as your READ statements specify individual variables or arrays, not RECORDs. If the file was written UNFORMATTED on VAX it is probably a 'SEGMENTED' file, which CAN be read on UNIX if special care is taken transferring the data. It is important that the RMS record lengths be preserved - if you are using UCX, a PUT/RAW in FTP will do this. Standard methods of copying the files will lose the data. I suggest reading http://www.digital.com/fortran/kb/q1022.html - while this was written from the perspective of DIGITAL Visual Fortran, the same issues apply to you using DIGITAL UNIX. Steve Lionel mailto:Steve.Lionel@digital.com DIGITAL Fortran Development http://www.digital.com/info/slionel.html Compaq Computer Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" DIGITAL Fortran web site: http://www.digital.com/fortran