wwang111 发表于 2016-8-26 21:15
libname aaa "your-dataset-path";
data _null_;
set sashelp.vtable end=last;
非常感谢回复,我试了:
data _null_;
set sashelp.vtable end=last;
where libname="temp";
if _n_=1 then call execute("data wanted; set temp."||strip(memname));
else call execute("temp."||strip(memname));
if last then call execute(";run;") ;
run;
/*-----------------------------------------------------------------------------------------------------------------*/
结果:
data _null_;
77 set sashelp.vtable end=last;
78 where libname="temp";
79 if _n_=1 then call execute("data wanted; set temp."||strip(memname));
80 else call execute("temp."||strip(memname));
81 if last then call execute(";run;") ;
82 run;
NOTE: 从数据集 SASHELP.VTABLE. 读取了 0 个观测
WHERE libname='temp';
NOTE: “DATA 语句”所用时间(总处理时间):
实际时间 1.01 秒
CPU 时间 1.01 秒
/*-----------------------------------------------------------------------------------------------------------------*/
不知道哪里出了问题?