How to transfers Datasets between the DECstation & RS/6000
SAS represents data in an internal format called a dataset. Dataset
representation is machine specific - you cannot create a dataset on a
DECstation and read it on an RS/6000 without transforming it.
In order to differentiate between machine types, SAS uses different file
extensions for the different architectures:
.ssd01 RS/6000
.ssd02 DECstation
For example, if you create a data set called 'fruits', on the RS/6000
you will have a file
fruits.ssd01
and on the DECstation
fruits.ssd02
To create a data set on on machine and read it on another, you need to
convert it into an intermediate form. To do this, use the SAS procedure CPORT.
Here is a sample program which does this:
libname tref2 '/mit/joeuser/sasuser';
filename tfruits '/mit/joeuser/sasuser/tfruits';
proc cport ds=tref2.fruits file=tfruits;
run;
After you submit this program, SAS will create a data file in
intermediate format called tfruits.data.
To read this data in on a different machine, write and run a program
like this:
libname tref2 '/mit/joeuser/sasuser';
filename tfruits '/mit/joeuser/sasuser/tfruits';
proc cimport ds=tref2.fruits infile=tfruits;
run;
After doing this, you will have three files in /mit/joeuser/sasuser:
fruits.ssd01 fruits.ssd02 tfruits
You can get more help on the procedures CPORT and CIMPORT using SAS Help
and following the options
Index
CPORT, CIMPORT
|