<?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 Re: Delete all macro variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821540#M41010</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I only wanted to delete the global macro variables I defined.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 05:14:08 GMT</pubDate>
    <dc:creator>madara155</dc:creator>
    <dc:date>2022-07-05T05:14:08Z</dc:date>
    <item>
      <title>Delete all macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821513#M41007</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to delete all the macro variables in a program and can't seem to find a method.&lt;/P&gt;&lt;P&gt;Saw that some people have suggested to use %&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SYMDEL &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;but I don't know how to delete all the macro variables using it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;Can someone please help me?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 00:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821513#M41007</guid>
      <dc:creator>madara155</dc:creator>
      <dc:date>2022-07-05T00:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821517#M41008</link>
      <description>&lt;P&gt;Use the following options at the top of the program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mfile mprint obs=0 noerrorbyabend errors=0 source source2 nonotes;&lt;/P&gt;
&lt;P&gt;filename mprint 'c:\temp\SasCode.txt’;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run your program, a new copy of it will be in the SasCode.txt file with all macros resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 01:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821517#M41008</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2022-07-05T01:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821529#M41009</link>
      <description>&lt;P&gt;First, you have to realize that what you requested is not possible.&amp;nbsp; You can only delete GLOBAL macro variables,&amp;nbsp; You cannot delete LOCAL macro variables, and you cannot delete AUTOMATIC macro variables that are supplied by the software.&amp;nbsp; So if deleting GLOBAL macro variables will satisfy what you need to do, here is a link that shows you how:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug06/po/po06.pdf" target="_blank" rel="noopener"&gt;https://www.lexjansen.com/nesug/nesug06/po/po06.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The specific example you requested begins at the bottom of page 3.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 04:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821529#M41009</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-07-05T04:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821540#M41010</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I only wanted to delete the global macro variables I defined.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 05:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821540#M41010</guid>
      <dc:creator>madara155</dc:creator>
      <dc:date>2022-07-05T05:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821584#M41011</link>
      <description>&lt;P&gt;Use this code to get all the macro variables .and %symdel them all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table x as
select * from dictionary.macros;
quit;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2022 12:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-all-macro-variables/m-p/821584#M41011</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-07-05T12:06:12Z</dc:date>
    </item>
  </channel>
</rss>

