How do I use a SPSS data file in Stata?

1. Using SPSS software

SPSS supports Stata data files and can easily save an SPSS file as a Stata file through the point and click interface or syntax.  Using the pull down menus select File then Save As... and then for Save as type select the type of Stata file needed.  Type the file name and click Save to save the Stata file. 

To use SPSS syntax use the save translate command as seen below.

save translate outfile='C:\data\hsb2.dta'.
Data written to C:\data\hsb2.dta.
11 variables and 200 cases written.
[output omitted for space]

2. Using Stat/Transfer software

It is fairly straightforward to convert an SPSS data file to Stata via Stat/Transfer. Note: If the file being transferred has more than 2,047 variables and you are going to use Stata/SE, the data file should be converted to Stata/SE, in which case you will need to select Output File Type: Stata/SE.


How to cite this page

Report an error on this page or leave a comment

The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.