Self-Purging Macros?
Friday, 6 April, 2012
⨳ 1 minute read ⨳ 44 words ⨳ macros ⨳ sas ⨳TLDR; a sas macro that deletes itself from work.sasmacr? the entry lock says no. nuts.
unfortunately, this doesn't work:
%macro test;
proc catalog cat=work.sasmacr;
delete test.macro;
run;
quit;
%mend;
%test;
the log
ERROR: Entry lock is not available for TEST.MACRO in catalog WORK.SASMACR, lock held by DMS Process.
nuts.