清除正用于存储的已编译SAS宏的库

All*_*owe 3 sas sas-macro

我有一个程序,使用以下语法在库中创建存储的编译宏:

options mstored sasmstore=MyLib; 
%macro MyMac() /store source des='My Macro'; 
  %let x=1;
%mend;
Run Code Online (Sandbox Code Playgroud)

但是我之后似乎无法重新分配我的库(MyLib) - 我得到以下消息(sas 9.1.3):

ERROR: Unable to clear or re-assign the library MYLIB because it is still in use.
ERROR: Error in the LIBNAME statement.
Run Code Online (Sandbox Code Playgroud)

任何人都可以建议吗?

小智 5

在SAS 9.3或更高版本中,您现在可以使用%SYSMSTORECLEAR语句清除libref.