<?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: How to insert a macro variable in the middle of a name of a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584340#M166411</link>
    <description>&lt;P&gt;You need a dot after the end of the macro variable name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ab&amp;amp;i.c&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Aug 2019 19:45:31 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-08-27T19:45:31Z</dc:date>
    <item>
      <title>How to insert a macro variable in the middle of a name of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584339#M166410</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;a series of dataset like ab2000c, ab2001c, ab2002c, ........&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do some analyses I made a macro variable like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro maxyear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%do&amp;nbsp; i = 2000 %to 2002;&lt;/P&gt;&lt;P&gt;proc freq data = ab&amp;amp;ic&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the above&amp;nbsp;dataset doesn't work. I don't know how to insert the macro variable in the middle of &amp;nbsp;the dataset name. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mandana &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 19:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584339#M166410</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2019-08-27T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a macro variable in the middle of a name of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584340#M166411</link>
      <description>&lt;P&gt;You need a dot after the end of the macro variable name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ab&amp;amp;i.c&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Aug 2019 19:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584340#M166411</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-27T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a macro variable in the middle of a name of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584343#M166413</link>
      <description>Any reason why you can't combine the data sets and work with them together?</description>
      <pubDate>Tue, 27 Aug 2019 19:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584343#M166413</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-27T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a macro variable in the middle of a name of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584347#M166416</link>
      <description>Hi, I cannot combine the dataset because the records are slightly different between the datasets. .</description>
      <pubDate>Tue, 27 Aug 2019 19:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-a-macro-variable-in-the-middle-of-a-name-of-a/m-p/584347#M166416</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2019-08-27T19:55:03Z</dc:date>
    </item>
  </channel>
</rss>

