<?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 Combining macro variables and do variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combining-macro-variables-and-do-variables/m-p/127512#M26032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of macro variables named &amp;amp;x_(year) that I need to perform some year-specific calculations.&amp;nbsp; Is there a way to combine the do loop variable with the &amp;amp;x_ stem to make sure everything matches up properly, or do I need to separate everything out into different steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2013 16:09:55 GMT</pubDate>
    <dc:creator>scify</dc:creator>
    <dc:date>2013-07-05T16:09:55Z</dc:date>
    <item>
      <title>Combining macro variables and do variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-macro-variables-and-do-variables/m-p/127512#M26032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of macro variables named &amp;amp;x_(year) that I need to perform some year-specific calculations.&amp;nbsp; Is there a way to combine the do loop variable with the &amp;amp;x_ stem to make sure everything matches up properly, or do I need to separate everything out into different steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 16:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-macro-variables-and-do-variables/m-p/127512#M26032</guid>
      <dc:creator>scify</dc:creator>
      <dc:date>2013-07-05T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combining macro variables and do variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-macro-variables-and-do-variables/m-p/127513#M26033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what your question is but does using &amp;amp;&amp;amp; help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;%do year=2010 %to 2011 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %put year=&amp;amp;year x_&amp;amp;year=&amp;amp;&amp;amp;x_&amp;amp;year;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend test ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let x_2010=Value for 2010;&lt;/P&gt;&lt;P&gt;%let x_2011=Value for 2011;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year=2010 x_2010=Value for 2010&lt;/P&gt;&lt;P&gt;year=2011 x_2011=Value for 2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 18:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-macro-variables-and-do-variables/m-p/127513#M26033</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-05T18:03:03Z</dc:date>
    </item>
  </channel>
</rss>

