Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Datasets to SPSS 1

Status
Not open for further replies.

krispi

MIS
May 16, 2002
281
GB
Hi all.

Is there a way to convert a SAS dataset into an SPSS .sav file without first saving it into a delimited format? I reckon the answer is probably 'no', but I thought I'd seek the wisdom of the forum before abandoning the idea.
 
Solved it. Just do it the other way round and use the Get SAS command in SPSS to bring in the SAS dataset.
 
Hi Krispi, thanks for posting the answer, always good to see people do that.
Can I ask, what versions of SPSS and SAS are you using? I've got users doing the same thing here and having version issues (the version of SPSS they are using doesn't seem to be able to read V9 SAS datasets.)
Cheers


Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Hi Chris - I'm using SAS 9.1 and SPSS 14.0. I've only used the procedure a couple of times up to now, but it does seem to work OK.

Cheers

Krispi
 
F.Y.I.

i recently looked into exporting from SAS to STATA & SPSS and found that, on top of what you have already discovered with SPSS v14, SAS v9.1.3 has also added some data sources to its PROC EXPORT procedure.

Have a look at the 9.1.3 SAS On-line Doc
e.g.
Code:
data test;
  a=10; b=20; output;
  a=20; b=30; output;
run;

* STATA;
proc export data=test
   outfile='m:\test.dta'
   dbms=dta;
run;

* SPSS; 
proc export data=test
   outfile='m:\test.sav'
   dbms=sav;
run;
but...i cant remember what version of STATA and SPSS it exports to.


cheers
Dan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top