<?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 terminating macro references? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37576#M7451</link>
    <description>hi all,&lt;BR /&gt;
&lt;BR /&gt;
how i can terminate all userdefined global and local macro variable references in a sas session?&lt;BR /&gt;
&lt;BR /&gt;
is there any special keyword or macro function to terminate?&lt;BR /&gt;
&lt;BR /&gt;
ex: %let a=pavan;&lt;BR /&gt;
&lt;BR /&gt;
like this so many macro variables created.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
after all these creations, i want to terminate all mavro variable values, so that i can use same names for other values.&lt;BR /&gt;
&lt;BR /&gt;
how?</description>
    <pubDate>Fri, 08 Aug 2008 13:58:21 GMT</pubDate>
    <dc:creator>Pavan_SAS</dc:creator>
    <dc:date>2008-08-08T13:58:21Z</dc:date>
    <item>
      <title>terminating macro references?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37576#M7451</link>
      <description>hi all,&lt;BR /&gt;
&lt;BR /&gt;
how i can terminate all userdefined global and local macro variable references in a sas session?&lt;BR /&gt;
&lt;BR /&gt;
is there any special keyword or macro function to terminate?&lt;BR /&gt;
&lt;BR /&gt;
ex: %let a=pavan;&lt;BR /&gt;
&lt;BR /&gt;
like this so many macro variables created.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
after all these creations, i want to terminate all mavro variable values, so that i can use same names for other values.&lt;BR /&gt;
&lt;BR /&gt;
how?</description>
      <pubDate>Fri, 08 Aug 2008 13:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37576#M7451</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-08-08T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: terminating macro references?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37577#M7452</link>
      <description>You can use the %SYMDEL macro-instruction. And you can get the user-defined macro-variable names either with dictionary.macros (in a SQL query) or with sashelp.vmacro (in a Data step).</description>
      <pubDate>Fri, 08 Aug 2008 14:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37577#M7452</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-08T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: terminating macro references?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37578#M7453</link>
      <description>%let a=pavan;&lt;BR /&gt;
&lt;BR /&gt;
by using %symdel a;  i am deleting that macro variable. its good.&lt;BR /&gt;
&lt;BR /&gt;
how i can delete all userdefied macro vars?&lt;BR /&gt;
&lt;BR /&gt;
can i use,   %symdel _all_;  to delete all?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
help me !</description>
      <pubDate>Fri, 08 Aug 2008 14:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37578#M7453</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-08-08T14:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: terminating macro references?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37579#M7454</link>
      <description>As Olivier pointed out, you can use dictionary.macros/sashelp.vmacro. Try this out:&lt;BR /&gt;
&lt;BR /&gt;
%let a=Linus;&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
	select name into: userMac separated by ' '&lt;BR /&gt;
	from dictionary.macros&lt;BR /&gt;
	where scope = 'GLOBAL';&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
%symdel &amp;amp;userMac UserMac;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
	select * from dictionary.macros;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Beware that this code alse deletes macro variables such as SQLMSG etc.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Mon, 11 Aug 2008 09:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/terminating-macro-references/m-p/37579#M7454</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-11T09:22:32Z</dc:date>
    </item>
  </channel>
</rss>

