Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Steve Lionel" <Steve.Lionel@digital.com>
Subject: Re: unformatted data conversion problem
Date: 1998/11/03	[thread overview]
Message-ID: <71n9pp$m7@usenet.pa.dec.com> (raw)
In-Reply-To: 363DE8DE.A88F6754@lanl.gov

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






  reply	other threads:[~1998-11-03  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-02  5:00 unformatted data conversion problem jim harsh
1998-11-03  5:00 ` Steve Lionel [this message]
1998-11-03  5:00 ` Paul Hughett
1998-11-04  5:00 ` jim harsh
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox