Hi, i have to convert my sas dataset into stata keeping the formats i created but i can't do it. I've even tried to make it on an easy example but still don't work. Here is my code: libname formats "...\Formats";
option fmtsearch=(formats);
Proc format lib=formats;
value $nationalite
"1" = "Française"
"2" = "CEE"
"3" = "Hors CEE";
quit;
data test;
input a$;
cards;
1
1
2
2
3
;
run;
data test2;
set test;
format a $nationalite.;
run;
PROC EXPORT DATA=test2
OUTFILE="...\base.dta"
DBMS=dta REPLACE;
fmtlib=formats;
RUN; The formats are attached to my sas dataset, but when i export this to stata with fmtlib option, stata ignores my formats, do you know why? Something is missing? Thank you!
... View more