<?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: vertically combine many data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443810#M111062</link>
    <description>&lt;P&gt;Or if you want ALL of the agloan sets in the library:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data conso.agloan;&lt;/P&gt;
&lt;P&gt;set conso.agloan: ; /* note the : that indicates the list operator */&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your individual sets are largish there may be a time penalty due to the way SET works and a series of Proc Append Calls may be quicker to execute. Unfortunately Proc Append only uses two data sets and not the shortcut list.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 16:10:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-03-08T16:10:13Z</dc:date>
    <item>
      <title>vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443622#M111001</link>
      <description>&lt;P&gt;Hi Everyone, thank you for reading the post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I combined 24 datasets using the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data conso.agloan;&lt;BR /&gt;set conso.agloan1993 conso.agloan1994 conso.agloan1995 conso.agloan1996 conso.agloan1997 conso.agloan1998 conso.agloan1999 conso.agloan2000 conso.agloan2001 conso.agloan2002 conso.agloan2003 conso.agloan2004 conso.agloan2005 conso.agloan2006 conso.agloan2007 conso.agloan2008 conso.agloan2009 conso.agloan2010 conso.agloan2011 conso.agloan2012 conso.agloan2013 conso.agloan2014 conso.agloan2015 conso.agloan2016;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works. But is there any trick to do it smarter without actually typing each dataset, something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data conso.agloan;&lt;/P&gt;&lt;P&gt;set conso.agloan1993 - conso.agloan2016;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 05:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443622#M111001</guid>
      <dc:creator>changxuosu1</dc:creator>
      <dc:date>2018-03-08T05:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443624#M111002</link>
      <description>&lt;P&gt;did your something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data conso.agloan;&lt;/P&gt;&lt;P&gt;set conso.agloan1993 - conso.agloan2016;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;work?????&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 05:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443624#M111002</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-08T05:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443810#M111062</link>
      <description>&lt;P&gt;Or if you want ALL of the agloan sets in the library:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data conso.agloan;&lt;/P&gt;
&lt;P&gt;set conso.agloan: ; /* note the : that indicates the list operator */&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your individual sets are largish there may be a time penalty due to the way SET works and a series of Proc Append Calls may be quicker to execute. Unfortunately Proc Append only uses two data sets and not the shortcut list.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443810#M111062</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-08T16:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443811#M111063</link>
      <description>&lt;P&gt;If all the tables are in specific library and have a defined prefix or suffix then you can get those table list by running query on dictionary.tables&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select distinct memname into: SET_Tables separated by " "
	from dictionary.tables
	where libname="CONSO" and memname like 'AGLOAN%';
quit;
data want;
set &amp;amp;SET_Tables;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443811#M111063</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-08T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443824#M111071</link>
      <description>oh my God! it works!!! it's so hilarious.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks!</description>
      <pubDate>Thu, 08 Mar 2018 17:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443824#M111071</guid>
      <dc:creator>changxuosu1</dc:creator>
      <dc:date>2018-03-08T17:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443825#M111072</link>
      <description>Thank you ballardw! it works perfectly!</description>
      <pubDate>Thu, 08 Mar 2018 17:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443825#M111072</guid>
      <dc:creator>changxuosu1</dc:creator>
      <dc:date>2018-03-08T17:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443828#M111074</link>
      <description>Thank you so much Suryakiran~ It works great~</description>
      <pubDate>Thu, 08 Mar 2018 17:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443828#M111074</guid>
      <dc:creator>changxuosu1</dc:creator>
      <dc:date>2018-03-08T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: vertically combine many data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443833#M111077</link>
      <description>can i choose two solutions? this works great as well. ( I changed select distinct memname into 'conso.'||left(memname) to customize to my libary)</description>
      <pubDate>Thu, 08 Mar 2018 17:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertically-combine-many-data-sets/m-p/443833#M111077</guid>
      <dc:creator>changxuosu1</dc:creator>
      <dc:date>2018-03-08T17:13:15Z</dc:date>
    </item>
  </channel>
</rss>

