From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a18c782bd6789eca X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-11-14 07:32:47 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!news1.oakland.edu!rcsuna.gmr.com!kocrsv08.delcoelect.com!c21rag From: c21rag@kocrsv01.delcoelect.com (Roger Grady) Newsgroups: comp.sys.dec Subject: Re: byte swapping to get data readable on a decstations Date: 14 Nov 1994 14:19:31 GMT Organization: Delco Electronics Corp. Distribution: usa Message-ID: <3a7rlj$3dc@kocrsv08.delcoelect.com> References: NNTP-Posting-Host: kocrsw23.delcoelect.com Originator: c21rag@kocrsw23 In article , ejh@larry.gsfc.nasa.gov (Edward Hartnett) writes: > > Howdy all. > > 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? I solved a similar problem by reading the data as character, shuffling the bytes as necessary and ending up with the rearranged bytes in a character variable Equivalence'd to a real variable. If you'd like more specific information, E-mail me and I'll send you some code fragments or try to answer specific questions. Roger Grady c21rag@kocrsv01.delcoelect.com Delco Electronics Corp. Kokomo, IN "All information and opinions are personal unless otherwise stated."