From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 112edf,1694941cbf50f304 X-Google-Attributes: gid112edf,public X-Google-Thread: 102b08,1694941cbf50f304 X-Google-Attributes: gid102b08,public X-Google-Thread: 1164f8,1694941cbf50f304 X-Google-Attributes: gid1164f8,public From: jeffreyb@gwis2.circ.gwu.edu (Jeffrey Boulier) Subject: Re: SAS: Byte-ordering problem between SPARC and Alpha Date: 1998/04/25 Message-ID: <6htejk$svk@gwis2.circ.gwu.edu>#1/1 X-Deja-AN: 347645177 References: Organization: The George Washington University Newsgroups: comp.soft-sys.sas,comp.sys.dec,comp.sys.sun.apps In article , Torkild Hovde Lyngstad wrote: > >We're supposed to move much of our production from Sun to DEC. >The production of statistics is running on SAS v6.12. > >Because of the different byte-ordering between the two platforms, the >people running the computations now has to "export" datasets created on Sun >to a third format (don't remember the name right now) and then read them >on Digital. > >Is there a way we can "convert" the files between bigendian and littleendian >ordering? I'm myself not really into this ordering problem, I only know that >it exists :) > >If anyone know of a way to easily "convert" hundreds of datafiles, like >through running a script or a program on them I'd be very grateful if you >could tell me how you got around this problem. There are three ways to go about this. 1) Run a SAS program on each data file to create a SAS transport file (the XPORT option on PROC COPY, as I recall), which can be FTP'd to the other system, and then unpacked by another SAS program. The 'expect' language, an add-on to TCL/TK, might be useful for automating this. 2) Use the special SAS/CONNECT package, usually purchased separately from the SAS Institute. This allows you to avoid the packing and unpacking -- SAS handles it by opening up a scripted session to SAS on the other machine, and directly transferring the data. You'd still probably want to also use Expect. We had a disastrous time attempting to use SAS/CONNECT when converting from an elderly VM mainframe to whiz-bang Suns, so your mileage may vary. 3) Forget it! Suns are awesome. Why go through the pain of converting to Digital Unix? [Uh-oh, this is being sent to comp.sys.dec, isn't it.] --Jeffrey Boulier -- AIX, MVS, Solaris, Wang VS Systems Programmer George Washington University