<?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: Concatenate multiple databases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794516#M254763</link>
    <description>&lt;P&gt;Here is an sample data an coding example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data info_2012;&lt;BR /&gt;a=1;&lt;BR /&gt;output;&lt;BR /&gt;a=2;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;Data info_2013;&lt;BR /&gt;a=3;&lt;BR /&gt;output;&lt;BR /&gt;a=4;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;Data info_2014;&lt;BR /&gt;a=5;&lt;BR /&gt;output;&lt;BR /&gt;a=6;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;DATA INFO_TOT;&lt;/P&gt;
&lt;P&gt;SET INFO_2012-INFO_2014 ;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 14:05:33 GMT</pubDate>
    <dc:creator>CarmineVerrell</dc:creator>
    <dc:date>2022-02-04T14:05:33Z</dc:date>
    <item>
      <title>Concatenate multiple databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794513#M254761</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is a way to concatenate multiple databases together without having to write them all. I have a lot of databases that are the same but with information on the last ten years.&lt;/P&gt;&lt;P&gt;INFO_2021&lt;/P&gt;&lt;P&gt;INFO_2020&lt;/P&gt;&lt;P&gt;INFO_2019&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;INFO_2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to put them all together in one database, one year after the other. Here is what I did:&lt;/P&gt;&lt;P&gt;DATA INFO_TOT;&lt;/P&gt;&lt;P&gt;SET INFO_2012 INFO_2013 INFO_2014 INFO_2015 INFO_2016 INFO_2017 INFO_2018 INFO_2019 INFO_2020 INFO_2021;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a more efficient way maybe with a loop? Something that I could do&lt;/P&gt;&lt;P&gt;DATA INFO_TOT;&lt;/P&gt;&lt;P&gt;SET INFO_2012 TO INFO_2021;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 13:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794513#M254761</guid>
      <dc:creator>Roxanne1</dc:creator>
      <dc:date>2022-02-04T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate multiple databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794516#M254763</link>
      <description>&lt;P&gt;Here is an sample data an coding example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data info_2012;&lt;BR /&gt;a=1;&lt;BR /&gt;output;&lt;BR /&gt;a=2;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;Data info_2013;&lt;BR /&gt;a=3;&lt;BR /&gt;output;&lt;BR /&gt;a=4;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;Data info_2014;&lt;BR /&gt;a=5;&lt;BR /&gt;output;&lt;BR /&gt;a=6;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;DATA INFO_TOT;&lt;/P&gt;
&lt;P&gt;SET INFO_2012-INFO_2014 ;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 14:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794516#M254763</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2022-02-04T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate multiple databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794534#M254770</link>
      <description>Thanks!</description>
      <pubDate>Fri, 04 Feb 2022 15:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-databases/m-p/794534#M254770</guid>
      <dc:creator>Roxanne1</dc:creator>
      <dc:date>2022-02-04T15:11:08Z</dc:date>
    </item>
  </channel>
</rss>

