Clearing the library that is used to store the compiled SAS macro

I have a program that creates a saved compiled macro in a library using the syntax:

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

However, I cannot assign my library again (MyLib) - I get the following message (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.

Can anyone advise?

+3
source share
2 answers

In SAS 9.3 or higher, you can clear libref using the % SYSMSTORECLEAR Statement .

+4
source

The short answer is I donโ€™t think you can in the same SAS session.

libref, (SASMACR) . , , SAS , . , libref. SASMACR (, , ), libref.

+4

Source: https://habr.com/ru/post/1721174/


All Articles