From: jeffreyb@gwis2.circ.gwu.edu (Jeffrey Boulier)
Subject: Re: SAS: Byte-ordering problem between SPARC and Alpha
Date: 1998/04/25 [thread overview]
Message-ID: <6htejk$svk@gwis2.circ.gwu.edu> (raw)
In-Reply-To: m3emyrm2dk.fsf@birk205.studby.uio.no
In article <m3emyrm2dk.fsf@birk205.studby.uio.no>,
Torkild Hovde Lyngstad <torkildl@student.sv.uio.no> 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
prev parent reply other threads:[~1998-04-25 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-21 4:00 SAS: Byte-ordering problem between SPARC and Alpha Torkild Hovde Lyngstad
1998-04-21 4:00 ` Ed Notari
1998-04-23 4:00 ` Dave Weatherall
1998-04-25 4:00 ` Jeffrey Boulier [this message]
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