Date: Wed, 4 Feb 2004 11:39:36 -0500
Reply-To: "DePuy, Venita" <depuy001@DCRI.DUKE.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "DePuy, Venita" <depuy001@DCRI.DUKE.EDU>
Subject: Re: Macro function %symdel
Credit for the macro below -
I got it off Dante diTommaso's SUGI 28 paper,'Taking Control of
(found the paper overall to be quite useful. As is Lex Jansen's site!)
> From: DePuy, Venita
> Wonderful little macro.
> I think I got it off a SUGI paper, but unfortunately I didn't put the
> source in my code.
> (My apologies to the author)
> %macro delvars; *clears out all global macros;
> data vars; set sashelp.vmacro; run;
> data _null_; set vars;
> if scope='GLOBAL' then call execute('%symdel
> '||trim(left(name))||';'); run;
> THE QUESTION I HAVE IS: Is there a way to remove ALL macro
> variables (such as a %symdel _all_) easily??? Any help on this would be
> greatly appreciated. Thanks!!!!