<?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 macrovariable containing the name of another macrovariable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101102#M21172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let X=5;&lt;/P&gt;&lt;P&gt;%let Y=X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I recover the value 5 from the macrovariable Y ?&lt;/P&gt;&lt;P&gt;I thought &amp;amp;&amp;amp;Y.. would do the trick but it resolves to "X."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 10:39:57 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2013-06-10T10:39:57Z</dc:date>
    <item>
      <title>macrovariable containing the name of another macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101102#M21172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let X=5;&lt;/P&gt;&lt;P&gt;%let Y=X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I recover the value 5 from the macrovariable Y ?&lt;/P&gt;&lt;P&gt;I thought &amp;amp;&amp;amp;Y.. would do the trick but it resolves to "X."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101102#M21172</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2013-06-10T10:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: macrovariable containing the name of another macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101103#M21173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I have found the answer : add a third ampersand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;&amp;amp;Y..;&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't understand the logic behind this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101103#M21173</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2013-06-10T10:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: macrovariable containing the name of another macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101104#M21174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can be done, how depends on your application.&lt;/P&gt;&lt;P&gt;Simplest:&lt;/P&gt;&lt;P&gt;%let X=5;&lt;/P&gt;&lt;P&gt;%let Y=&lt;EM&gt;&amp;amp;&lt;/EM&gt;X.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101104#M21174</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-06-10T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: macrovariable containing the name of another macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101105#M21175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro compiler removes duplicate &amp;amp;, "pairwise". In your case:&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;&lt;P&gt;&amp;amp;Y resolves to X.&lt;/P&gt;&lt;P&gt;Leaving &amp;amp;X, which resolves to 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101105#M21175</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-06-10T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: macrovariable containing the name of another macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101106#M21176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that makes more sense now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macrovariable-containing-the-name-of-another-macrovariable/m-p/101106#M21176</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2013-06-10T10:53:42Z</dc:date>
    </item>
  </channel>
</rss>

