DATA Step, Macro, Functions and more

'delete' a macro variable

Reply
Contributor
Posts: 74

'delete' a macro variable

Is there a way to disable or delete a previously defined macro variable? not to set it to null, but 'destroy' this macro variable? thanks a bunch!
Super Contributor
Posts: 359

Re: 'delete' a macro variable

Try %SYMDEL macro-variable(s);
Contributor
Posts: 34

Re: 'delete' a macro variable

Please note that, The %SYMDEL function works ONLY on GLOBAL macro variables.
Contributor
Posts: 74

Re: 'delete' a macro variable

thank you all!
Super Contributor
Super Contributor
Posts: 3,174

Re: 'delete' a macro variable

For future consideration, here is a relevant example for a Google advanced search argument using your topic-related keywords:

delete macro variable site:sas.com

Scott Barry
SBBWorks, Inc.
Contributor
Posts: 74

Re: 'delete' a macro variable

good to know! thanks!
Ask a Question
Discussion stats
  • 5 replies
  • 172 views
  • 0 likes
  • 4 in conversation