<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Deleting macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19553#M3046</link>
    <description>All&lt;BR /&gt;
&lt;BR /&gt;
I know how to find and delete macro variables from the global symbol table with %symexist and %symdel. &lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
  %if %symexist(NewFileName) %then %symdel NewFileName;&lt;BR /&gt;
&lt;BR /&gt;
 But how can I search for the existance and delete a macro variable from a local symbol table.  I'm at a loss.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
-Darryl</description>
    <pubDate>Tue, 20 May 2008 21:01:40 GMT</pubDate>
    <dc:creator>darrylovia</dc:creator>
    <dc:date>2008-05-20T21:01:40Z</dc:date>
    <item>
      <title>Deleting macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19553#M3046</link>
      <description>All&lt;BR /&gt;
&lt;BR /&gt;
I know how to find and delete macro variables from the global symbol table with %symexist and %symdel. &lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
  %if %symexist(NewFileName) %then %symdel NewFileName;&lt;BR /&gt;
&lt;BR /&gt;
 But how can I search for the existance and delete a macro variable from a local symbol table.  I'm at a loss.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
-Darryl</description>
      <pubDate>Tue, 20 May 2008 21:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19553#M3046</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2008-05-20T21:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19554#M3047</link>
      <description>Sas local macro variable are disapearing as soon the macro is executed!&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Wed, 21 May 2008 15:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19554#M3047</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2008-05-21T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19555#M3048</link>
      <description>It's supposed to, by design.&lt;BR /&gt;
&lt;BR /&gt;
Locals local to the macro and are equivalent to stack variables.&lt;BR /&gt;
&lt;BR /&gt;
If you need persistence, then use a global variable.</description>
      <pubDate>Wed, 21 May 2008 15:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-macro-variables/m-p/19555#M3048</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-21T15:22:56Z</dc:date>
    </item>
  </channel>
</rss>

