* SAS: Byte-ordering problem between SPARC and Alpha
@ 1998-04-21 4:00 Torkild Hovde Lyngstad
1998-04-21 4:00 ` Ed Notari
1998-04-25 4:00 ` Jeffrey Boulier
0 siblings, 2 replies; 4+ messages in thread
From: Torkild Hovde Lyngstad @ 1998-04-21 4:00 UTC (permalink / raw)
I have several SPARC-boxes (Ultra 1/2, Enterprise, SS10/20 etc) running mostly
Solaris 2.5.1 and 2.6, and one DEC AlphaServer 4000 with DEC Unix 4.0.
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.
--
Torkild Hovde Lyngstad <torkildl@nvg.ntnu.no>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SAS: Byte-ordering problem between SPARC and Alpha
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
1 sibling, 1 reply; 4+ messages in thread
From: Ed Notari @ 1998-04-21 4:00 UTC (permalink / raw)
Actually we had to go through the same thing here. The export program in SAS that
you are refering to has a "LIBRARY" command which can create that interim file
format you were referring to in order to export an entire directory. The reason
for this is a move from a 32-bit to 64-bit OS. The SunOS SAS datasets should have
a .ssd01 extension and when imported to DU they should be .ssd04
We also tried to find a global fix but it just doesn't exist.
Ed Notari
Torkild Hovde Lyngstad wrote:
> I have several SPARC-boxes (Ultra 1/2, Enterprise, SS10/20 etc) running mostly
> Solaris 2.5.1 and 2.6, and one DEC AlphaServer 4000 with DEC Unix 4.0.
>
> 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.
>
> --
> Torkild Hovde Lyngstad <torkildl@nvg.ntnu.no>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SAS: Byte-ordering problem between SPARC and Alpha
1998-04-21 4:00 ` Ed Notari
@ 1998-04-23 4:00 ` Dave Weatherall
0 siblings, 0 replies; 4+ messages in thread
From: Dave Weatherall @ 1998-04-23 4:00 UTC (permalink / raw)
On Tue, 21 Apr 1998 20:03:18, Ed Notari
<nospam.notarie@hlnt.nospam.redcross.org> wrote:
> Actually we had to go through the same thing here. The export program in SAS that
> you are refering to has a "LIBRARY" command which can create that interim file
> format you were referring to in order to export an entire directory. The reason
> for this is a move from a 32-bit to 64-bit OS. The SunOS SAS datasets should have
> a .ssd01 extension and when imported to DU they should be .ssd04
>
> We also tried to find a global fix but it just doesn't exist.
DEC have built into the OS's support for the endian conversion.
Normally it's done from the OPEN staement. Unfortunately I only know
the Fortran stuff and I doubt your stuff is done in that....
The statements will, if I remember correctly, resolve byte/word
ordering and, where necessary, conversion from IEEE to internal
floating point number organisation.
How well it all works I don't know.
Cheers - Dave.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SAS: Byte-ordering problem between SPARC and Alpha
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-25 4:00 ` Jeffrey Boulier
1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey Boulier @ 1998-04-25 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-04-25 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox