Hi,
I'm trying to convert my SAS dataset to Stata using the export procedure.
I have a dataset called 'survey' which I can successully export to Stata.
The resulting Stata file has the proper variable label. However, the formats does not carry over to the Stata dataset.
For example, a SAS variable 'sex' should have the format 1='Male, 2='Female'. The Stata dataset value label for sex is just '1' and '2'. I would preper that I don't have to code all the values in Stata.
Below is the export code i used.
libname data 'C:\data\';
libname library 'C:\Data\Formats';
proc export data=data.survey
file="C:\data\stata\survey"
dbms=STATA
replace;
fmtlib=library;
run;
Thanks for any guidance'
--Tim