|
Hi there
I've searched the archives for advice on converting SAS formats into SPSS
value labels but I can't figure out what is wrong with the code below. The
data converts fine but the value labels are missing in SPSS. I'm using SAS
version 8.02 and SPSS version 13.0. Any advice would be much appreciated.
Many thanks
Steve Barron
/*SAS CODE*/
libname queries 'z:\lorraine\queries';
libname sasspss xport 'z:\lorraine\data.xpt';
proc copy in=queries out=sasspss;
select data;
run;
libname library 'z:\lorraine\library\' ;
proc format library=library cntlout=formats;
run;
libname fmt2spss xport 'z:\lorraine\formats.xpt';
proc copy in=work out=fmt2spss;
select formats;
run;
/*SPSS CODE*/
get sas data="z:\data.xpt"
/formats="z:\formats.xpt".
save outfile="z:\steve.sps".
execute.
|