How do I convert among SAS, Stata and SPSS files?
On this page, conversions of different data formats are discussed. In general, the strategies should work with SAS 9.*, SPSS 14+ and Stata 11. If you have Stata 11 and you need to convert your data to other formats, you need to use the saveold command within Stata for saving the data in Stata version 10 format before you convert the data set.
|To SAS||To SPSS||To Stata|
|From SAS||– How do I use a SAS data file in SPSS?||– How do I use a SAS data file in Stata?|
|From SPSS||– How do I use a SPSS data file in SAS?||– How do I use a SPSS data file in Stata?|
|From Stata||– How do I use a Stata data file in SAS?||– How do I use a Stata data file in SPSS?|
Another way to convert data files between SAS, Stata and SPSS is to use programs such as Stat/Transfer or DBMS Copy. For more information on Stat/Transfer, please see our Stat/Transfer page. You can transfer the SAS version 9.*, Stata 11 and SPSS 19 files. Stat/Transfer allows you to transfer data files to many other file formats, including Statistica, Systat, S-Plus, R, Excel, Access, Minitab, Matlab, LIMDEP and JMP. You may need to update your copy of Stat/Transfer to be able to transfer data sets created by the latest version of the software. To update Stat/Transfer, click on the “About” tab (in the upper right corner), and click on the “Check for Updates” pull-down menu and select “Right Now”.