Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@quark.enet.dec.com (Steve Lionel)
Subject: Re: byte swapping to get data readable on a decstations
Date: 10 Nov 1994 16:07:10 GMT	[thread overview]
Message-ID: <39tgfe$i1e@jac.zko.dec.com> (raw)
In-Reply-To: EJH.94Nov10084407@larry.gsfc.nasa.gov


In article <EJH.94Nov10084407@larry.gsfc.nasa.gov>, ejh@larry.gsfc.nasa.gov 
(Edward Hartnett) writes:

|>We here distribute some floating point (IEEE) data to various
|>users. We generate it on a cray and various workstations, and now we
|>have a user who wants to read the data from a fortran program on a
|>decstation. He complains that he can't do this because of the order
|>that the bytes are stored in. Is there any hope that we can help him
|>solve his problem?

Simplicity itself, if he's using a reasonably current version of DEC Fortran.
Have him add CONVERT='BIG_ENDIAN' to the OPEN statement for the unit
in question - this will cause DEC Fortran to do the byte swapping
during unformatted transfers of scalars and arrays (but not RECORDs)
automatically.  An alternative is to define the environment variable
FORT_CONVERTn , where n is the unit number, to BIG_ENDIAN before running
the program.

This feature is available in DEC Fortran for all supported platforms
(RISC ULTRIX, DEC OSF/1 AXP, OpenVMS AXP, OpenVMS VAX, Windows NT AXP).
Details vary on the "environment variable" method - see the User Manual
for further details.

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For a summary of Digital's Internet services, send mail to info@digital.com


  reply	other threads:[~1994-11-10 16:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-10 13:44 byte swapping to get data readable on a decstations Edward Hartnett
1994-11-10 16:07 ` Steve Lionel [this message]
1994-11-10 16:47 ` Chuck Campbell
1994-11-11  9:31 ` Ken Bell
1994-11-14 21:55   ` Eric Frey
1994-11-11 23:18 ` Ken Bell
1994-11-14 14:19 ` Roger Grady
1994-11-16  4:06 ` byte swapping to get data readable on a dec John Lovell
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