在我的 SAS 程序完成后,我想删除几个数据集。我正在使用这个语句:
proc datasets lib=temp;
delete xtemp2&sysparm trades&sysparm tickers&sysparm;
quit;
run;
在哪里
&sysparm
计算为一个数字和temp
一个libname
。但是,我在日志文件中收到以下错误:
142 delete xtemp2&sysparm trades&sysparm tickers&sysparm;
______
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
有人知道这个问题吗?
编辑:
Here is some more of the log file to address the answer:
NOTE: "OUT_CSV" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.27 seconds
cpu time 0.12 seconds
142 delete xtemp2&sysparm trades&sysparm tickers&sysparm;
______
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
这是proc之前的代码:
proc export data=temp.xtemp2&sysparm outfile=out_csv dbms=csv replace;
run;
proc datasets lib=temp;
delete xtemp2&sysparm trades&sysparm tickers&sysparm;
quit;
run;