I'm trying to import a Stata version 13 file in my SAS 9.4 - but keep getting the error message
For Stata, Release flags of 103 to 115 are supported. You had -> 60 Requested Input File Is Invalid ERROR: Import unsuccessful. See SAS Log for details.
Folliwing code does not work:
proc import out = uw14 datafile = "C:\User\KE14_hhld.dta"; run;
Neither does this: proc import out = uw14 datafile = "C:\User\KE14_hhld.dta"
dbms = stata replace; run;
I've found out that SAS 9.4 does not read Stata version 13 files. SAS 9.4 only reads Stata 12 files (or earlier).
One solution could be to save the Stata 13 file as an older version - but I only have Stata 12 on my computer and it's unable to open the version 13 file. Another solution could be to save it as a CSV file in R - this done by following code:
proc import out = uw14 datafile = "C:\User\KE14_hhld.csv"; run;
But I've tried this and the transformation sets an unmanageable amount of my variables as characteristics instead of numeric and kills all formats.
Any other ideas?
(I'm not able to download other versions than SAS9.4 and Stata12) Thanks
proc import
? And why use R for CSV file, both Stata and SAS have such facilities. – Parfaitdbms = dta
? – Parfait