<?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 Macro variable within a macro variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-variable-within-a-macro-variable/m-p/141721#M11328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following macro variables:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;day_1_start = 'something'&lt;/P&gt;&lt;P&gt;day_2_start = 'somethingelse'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to call them in a loop, and so (within a macro loop) have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do i = 1 %to 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var = var * &amp;amp;day_&amp;amp;i._start ;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not working. The log says 'WARNING: Apparent symbolic reference DAY_ not resolved.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 12:51:56 GMT</pubDate>
    <dc:creator>Lupacante</dc:creator>
    <dc:date>2014-06-13T12:51:56Z</dc:date>
    <item>
      <title>Macro variable within a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-variable-within-a-macro-variable/m-p/141721#M11328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following macro variables:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;day_1_start = 'something'&lt;/P&gt;&lt;P&gt;day_2_start = 'somethingelse'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to call them in a loop, and so (within a macro loop) have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do i = 1 %to 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var = var * &amp;amp;day_&amp;amp;i._start ;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not working. The log says 'WARNING: Apparent symbolic reference DAY_ not resolved.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 12:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-variable-within-a-macro-variable/m-p/141721#M11328</guid>
      <dc:creator>Lupacante</dc:creator>
      <dc:date>2014-06-13T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable within a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-variable-within-a-macro-variable/m-p/141722#M11329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put an extra &amp;amp; in from of &amp;amp;day:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = var * &amp;amp;&amp;amp;day_&amp;amp;i._start ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That causes the first pass to resolve to &amp;amp;day_1_start, and the second pass resolves to something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom (I hate macros) Kari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 13:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-variable-within-a-macro-variable/m-p/141722#M11329</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-06-13T13:56:08Z</dc:date>
    </item>
  </channel>
</rss>

