<?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: On local symbol tables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548235#M8490</link>
    <description>&lt;P&gt;Absolutely.&amp;nbsp; Here's a test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro a (var=5);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;%put _user_;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro b (var=10);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;%a&lt;/P&gt;
&lt;P&gt;%mend b;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%b ()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 14:53:23 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-04-03T14:53:23Z</dc:date>
    <item>
      <title>On local symbol tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548227#M8488</link>
      <description>&lt;P&gt;I know that same named variables can be present in both the global and local symbol tables with different values,&amp;nbsp; but can same named macro variables be present in two or more local symbol tables concurrently, having different values?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548227#M8488</guid>
      <dc:creator>Syntas_error</dc:creator>
      <dc:date>2019-04-03T14:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: On local symbol tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548235#M8490</link>
      <description>&lt;P&gt;Absolutely.&amp;nbsp; Here's a test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro a (var=5);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;%put _user_;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro b (var=10);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;%a&lt;/P&gt;
&lt;P&gt;%mend b;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%b ()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548235#M8490</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-03T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: On local symbol tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548249#M8496</link>
      <description>&lt;P&gt;Absolutely.&lt;/P&gt;
&lt;P&gt;When running SAS will return the result from the "inner most" scope.&amp;nbsp; Think of macro scope like nesting dolls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the macro variable MVAR1 exist as GLOBAL (or some outer scope) but your macro (or some intervening macro scope) also has a local macro variable named MVAR1 then that outer version is hidden.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really need know what the value in that outer scope is you could use this utility macro.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/symget.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/symget.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://raw.githubusercontent.com/sasutils/macros/master/symget.sas" target="_self"&gt;RawCode&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 15:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/On-local-symbol-tables/m-p/548249#M8496</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-03T15:20:32Z</dc:date>
    </item>
  </channel>
</rss>

