How to import a Stata file into SAS 9.0? -
i have converted stata file old version saveold
the following doesn't work sas 9.0
proc import datafile="d:\hsb.dta" out=mydata dbms = dta replace; run; proc print data=mydata; run;
error: dbms type dta not valid import.
sas did not add support importing stata files until version 9.1.3 (see this tech support note). need either upgrade version of sas 9.1.3 or newer (current version 9.3 9.4 in process of being released), or export stata in format such text file nick suggests.
assuming version of sas validly licensed, should able upgrade contacting sas site representative. there's little reason use 9.0; replaced 9.1.3 due several significant issues 9.0.
you need have licensed sas/access pc file formats. optional license base sas. can verify license running:
proc setinit; run;
if see entry for
sas/access interface pc files
then have licensed. if not need contact site rep or consider alternative direct import.
Comments
Post a Comment