Removing Macro Variables

From sasCommunity
Jump to: navigation, search

Removing Macro Variables from the SAS® Environment

Frank C. DiIorio

published in 1999: is v8

http://www.codecraftersinc.com/pdf/RemoveMacroVariables.pdf

THE PROBLEM

A common, and sometimes irksome, feature of running SAS programs interactively (in Display Manager or via SAS/Intrnets’s socket services) is carryover of values. ....

But what about macro variables?

There are numerous techniques for nulling the value of the variable

[
%let var = %str();
is a favorite]

but this does not actually remove the variable from the macro symbol table.


see also:

  • macro statement %symdel == Symbol Delete
  • options msymtabmax, mvarsize

harvested by:

--macro maven == the radical programmer 21:06, 10 February 2011 (UTC)