options validvarname=any;/*由於excel中的名字存在空格等*/
/*寫入excel,class,air,bei分別是test.xlsx中的表名*/
libname s xlsx './test.xlsx';
data s.class;
set sashelp.class;
run;
data s.air;
set sashelp.air;
run;
data s.bei;
set sashelp.bei;
run;
libname s clear;excel
/*從excel讀出到SAS數據集*/
libname s xlsx './test.xlsx';
data a;
set s.class;
run;
proc print data=a;
run;blog
libname s clear;io