<?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: macro resolving issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123354#M25326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a perfect answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2013 01:48:53 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-07-01T01:48:53Z</dc:date>
    <item>
      <title>macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123352#M25324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please help me in understanding the resolving of values for ''a" in below case?&lt;/P&gt;&lt;P&gt;I know like for &amp;amp;a is usa, but the rest are quite confusing with the output that i see in sas log and the way how i understood conceptually.&lt;/P&gt;&lt;P&gt;Much help is appreciated if someone can explain me as to how SAS interprets here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a=usa;&lt;/P&gt;&lt;P&gt;%let usa=america;&lt;/P&gt;&lt;P&gt;%let america=states;&lt;/P&gt;&lt;P&gt;%put &amp;amp;a &amp;amp;&amp;amp;a &amp;amp;&amp;amp;&amp;amp;a &amp;amp;&amp;amp;&amp;amp;&amp;amp;a &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;a &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 17:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123352#M25324</guid>
      <dc:creator>Kethy</dc:creator>
      <dc:date>2013-06-30T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123353#M25325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use any number of ampersands (&amp;amp;) in an indirect macro variable reference.&lt;/P&gt;&lt;P&gt;It resolves the entire reference from left to right. if a pair of ampersands (&amp;amp;&amp;amp;) is encountered, the pair is resolved to single ampersand, then the next part of the reference is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;a;&amp;nbsp;&amp;nbsp; * usa *;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;a;&amp;nbsp; * usa *;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;a; * America * ;&lt;/P&gt;&lt;P&gt;explaination : &amp;amp;&amp;amp; resolves to single &amp;amp; (put in reserve)&amp;nbsp; resolve &amp;amp;a to usa, now with reserve &amp;amp; sas reads &amp;amp;usa , result is america.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;&amp;amp;a; * usa . pairing &amp;amp;&amp;amp; and &amp;amp;&amp;amp; comes to &amp;amp;&amp;amp; resolves to &amp;amp; *;&lt;/P&gt;&lt;P&gt;explaination : &amp;amp;&amp;amp; resolves to single &amp;amp; (put in reserve) again &amp;amp;&amp;amp; resolve to single &amp;amp; (put in reserve) , now we have only a, no execution. in reserve we have &amp;amp;&amp;amp; which is &amp;amp;a. again result is usa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;a;&lt;/P&gt;&lt;P&gt;explaination : &amp;amp;&amp;amp; resolves to single &amp;amp; (put in reserve) again &amp;amp;&amp;amp; resolve to single &amp;amp; (put in reserve), now we have &amp;amp;a , resolve to usa. In reserve we have two ampersand, which is one (&amp;amp;) and now it is &amp;amp;usa, resolve to America.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;explaination : &amp;amp;&amp;amp; resloves to single &amp;amp; (put in reserve) again &amp;amp;&amp;amp; resolve to single &amp;amp; (put in reserve) , &amp;amp;&amp;amp; resolve to single &amp;amp; (put in reserve), now we have only a , no execution. In reserve we have &amp;amp;&amp;amp;&amp;amp; so again result is America.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;a .... would resolve to state, because we would have three ampersand (in reserve) and &amp;amp;a resolve to usa. &amp;amp;&amp;amp;&amp;amp;usa resolve to &amp;amp;america and it would resolve to States.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry as i have put my explanation in a lay man manner, if i hurt someone , apologies......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Uma Shanker Saini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 19:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123353#M25325</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2013-06-30T19:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123354#M25326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a perfect answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 01:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123354#M25326</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-01T01:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123355#M25327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marvellous answer buddy.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 06:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123355#M25327</guid>
      <dc:creator>NishunkSaxena</dc:creator>
      <dc:date>2013-07-01T06:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123356#M25328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Awesome explanation.Thank you &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Uma Shanker Saini&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 15:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123356#M25328</guid>
      <dc:creator>Kethy</dc:creator>
      <dc:date>2013-07-01T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: macro resolving issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123357#M25329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom, Nishunk and Kethy : Thank you so much for warm appreciation....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 17:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-resolving-issue/m-p/123357#M25329</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2013-07-03T17:21:40Z</dc:date>
    </item>
  </channel>
</rss>

