From: Al on

Dear all:
How to delete a macro after it is assigned.. without closing the SAS
session

Thanks in advance
Al
From: Ya on
On Jun 15, 9:22 am, Al <ali6...(a)gmail.com> wrote:
> Dear all:
> How to delete a macro after it is assigned.. without closing the SAS
> session
>
> Thanks in advance
> Al

You can use %symdel:

17 %let a=2143;
18
19 %put &a;
2143
20
21 %symdel a;
22
23 %put &a;
WARNING: Apparent symbolic reference A not resolved.
&a

HTH

Ya
From: RolandRB on
On Jun 15, 6:22 pm, Al <ali6...(a)gmail.com> wrote:
> Dear all:
> How to delete a macro after it is assigned.. without closing the SAS
> session
>
> Thanks in advance
> Al

%macro test;
%mend test;

proc catalog catalog=work.sasmacr et=macro;
delete test;
run;
quit;