<?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 append all dataset in one library in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175692#M45068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/8641_pastedImage_0.png" style="width: 865px; height: 91px; float: left;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 21:49:34 GMT</pubDate>
    <dc:creator>xiaoqiuyin</dc:creator>
    <dc:date>2015-01-08T21:49:34Z</dc:date>
    <item>
      <title>How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175686#M45062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I have about 100 datasets (with different names) in one library. All datasets have same format and same variables. I would like to append them into one file, is there any quick way to do that? :smileyconfused:&lt;/SPAN&gt;:smileyconfused::smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 20:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175686#M45062</guid>
      <dc:creator>xiaoqiuyin</dc:creator>
      <dc:date>2015-01-08T20:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175687#M45063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this will work. Just replace &amp;lt;&amp;lt;Libname&amp;gt;&amp;gt; with your library name. If required you can also filter table names in where condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT MEMNAME INTO : MEMNAMES SEPERATED BY ' ' from dictionary.tables where libname='&amp;lt;&amp;lt;LIBNAME&amp;gt;&amp;gt;';quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;SET &amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="smarterwiki-popup-bubble smarterwiki-popup-bubble-active smarterwiki-popup-bubble-flipped" style="top: 162px; left: 175px; margin-left: -54px; opacity: 0.25;"&gt;&lt;SPAN class="smarterwiki-popup-bubble-tip"&gt;&lt;/SPAN&gt;&lt;SPAN class="smarterwiki-popup-bubble-body"&gt;&lt;SPAN class="smarterwiki-popup-bubble-links-container"&gt;&lt;SPAN class="smarterwiki-popup-bubble-links"&gt;&lt;SPAN class="smarterwiki-popup-bubble-links-row"&gt;&lt;A class="smarterwiki-popup-bubble-link" href="http://duckduckgo.com/?q=%3B&amp;amp;t=ff" target="_blank" title="Search DuckDuckGo"&gt;&lt;IMG alt="" class="smarterwiki-popup-bubble-link-favicon" src="https://ff.duckduckgo.com/favicon.ico" /&gt;&lt;/A&gt;&lt;A class="smarterwiki-popup-bubble-link" href="http://www.google.com/search?hl=com&amp;amp;btnI=I'm+Feeling+Lucky&amp;amp;q=%3B+wikipedia" target="_blank" title="Search Wikipedia"&gt;&lt;IMG alt="" class="smarterwiki-popup-bubble-link-favicon" src="https://communities.sas.com/" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="smarterwiki-popup-bubble-links-row"&gt;&lt;A class="smarterwiki-popup-bubble-link" href="http://www.google.com/search?q=%3B" target="_blank" title="Search Google"&gt;&lt;IMG alt="" class="smarterwiki-popup-bubble-link-favicon" src="https://www.google.com/favicon.ico" /&gt;&lt;/A&gt;&lt;A class="smarterwiki-popup-bubble-link" href="http://search.surfcanyon.com/search?f=nrl1&amp;amp;q=%3B&amp;amp;partner=fastestfox" target="_blank" title="Search Surf Canyon"&gt;&lt;IMG alt="" class="smarterwiki-popup-bubble-link-favicon" src="https://communities.sas.com/" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="smarterwiki-popup-bubble smarterwiki-popup-bubble-active smarterwiki-popup-bubble-detailed smarterwiki-popup-bubble-flipped" style="margin-top: 60px; margin-left: -350px; top: 162px; left: 175px; opacity: 0.25;"&gt;&lt;SPAN class="smarterwiki-popup-bubble-tip"&gt;&lt;/SPAN&gt;&lt;SPAN class="smarterwiki-popup-bubble-body"&gt;&lt;SPAN class="smarterwiki-popup-bubble-definition"&gt;&lt;SPAN&gt;&lt;SPAN class="smarterwiki-zc-header"&gt;Semicolon&lt;/SPAN&gt;&lt;SPAN class="smarterwiki-zc-abstract"&gt;&lt;STRONG&gt;Wikipedia:&lt;/STRONG&gt;&lt;SPAN&gt; The semicolon or semi-colon is a punctuation mark that separates major sentence elements. A semicolon can be used between two closely related dependent clauses, provided they are not already joined by a coordinating conjunction. Semicolons can also be used in place of commas to separate items in a list, particularly when the elements of that list contain commas. &lt;/SPAN&gt;&lt;A href="http://duckduckgo.com/?q=%3B&amp;amp;t=ff" id="dd-cite-link"&gt;&lt;STRONG&gt;→&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 20:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175687#M45063</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2015-01-08T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175688#M45064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done the following to accomplish the same thing.&amp;nbsp; I'm guessing there is a better way but I know this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib='libname' nolist;contents data=_all_ noprint out='new_dataset';quit;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table table_names as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select DISTINCT MEMNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from 'new_dataset';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you all of the table names, copy and past them to get something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;P&gt;table2&lt;/P&gt;&lt;P&gt;table3&lt;/P&gt;&lt;P&gt;table...;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 20:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175688#M45064</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-01-08T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175689#M45065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The different names don't have any naming convention? i.e. data1-data100 or dt_alabama dt_arizona?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 20:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175689#M45065</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-08T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175690#M45066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 21:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175690#M45066</guid>
      <dc:creator>xiaoqiuyin</dc:creator>
      <dc:date>2015-01-08T21:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175691#M45067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, my library is WORK, but no rows selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" src="https://communities.sas.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 21:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175691#M45067</guid>
      <dc:creator>xiaoqiuyin</dc:creator>
      <dc:date>2015-01-08T21:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175692#M45068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/8641_pastedImage_0.png" style="width: 865px; height: 91px; float: left;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 21:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175692#M45068</guid>
      <dc:creator>xiaoqiuyin</dc:creator>
      <dc:date>2015-01-08T21:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175693#M45069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="808229" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s method is much better:&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT distinct /* just in case*/ MEMNAME INTO : MEMNAMES SEPERATED BY ' ' from dictionary.tables where libname='WORK' /*NOT &amp;lt;&amp;lt;WORK&amp;gt;&amp;gt;*/;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;SET &amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, anything involving 'copy &amp;amp; paste' is not "Production" quality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: if all of your tables are in WORK library, then &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s question becomes relevant. So suppose if you have created all these files (copy from other permanent libraries doesn't make sense to me), then you will have the liberty to name them in a consistent way such as work_01, work_02 etc, you can then completely skip tapping metadata, statements like " set work:;" will have the job done.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 22:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175693#M45069</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-01-08T22:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175694#M45070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Hai Kuo:) it works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 22:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175694#M45070</guid>
      <dc:creator>xiaoqiuyin</dc:creator>
      <dc:date>2015-01-08T22:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175695#M45071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the question answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 03:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175695#M45071</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-09T03:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175696#M45072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution doesn't work for me, unless the datasets are already in my work library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this code works (assuming I have already input all my datasets into the SAS work library):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT distinct MEMNAME INTO : MEMNAMES SEPERATED BY ' ' from dictionary.tables where libname='WORK';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;SET &amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to specify a different library, using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname FAKENAME 'C:\Path';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT MEMNAME INTO : MEMNAMES SEPERATED BY ' ' from dictionary.tables where libname='FAKENAME';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;SET &amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS gives me error messages in the DATA step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE1.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE2.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE3.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE4.DATA does not exist.&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it is looking for all of the datasets in the WORK library, despite me setting the libname to FAKENAME. How do I get around this behavior? This exact chunk of code was accepted as the answer, but it clearly doesn't actually work the way it is supposed to, unless you happen to already having everything in the WORK library.Otherwise, I can't find a way to get it to work. Adding the libname into the SET statement in the DATA step does not get around this issue. Further, using %put &amp;amp;memnames, I can see that PROC SQL hasn't appended any libname in front of the data file names at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have a solution? How did it work for the OP and not for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175696#M45072</guid>
      <dc:creator>RyanSimmons</dc:creator>
      <dc:date>2015-07-31T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175697#M45073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;SET &amp;amp;MEMNAMES.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;You need to add the library to that line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SET FAKENAME.&amp;amp;MEMNAMES.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175697#M45073</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-31T16:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175698#M45074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said in my post, "Adding the libname into the SET statement in the DATA step does not get around this issue."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;/P&gt;&lt;P&gt;SET FAKENAME.&amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives me the same exact error message (and, yes, I have made sure that the libname is properly defined):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;64&lt;/P&gt;&lt;P&gt;65&amp;nbsp;&amp;nbsp; DATA WANT;&lt;/P&gt;&lt;P&gt;66&lt;/P&gt;&lt;P&gt;67&amp;nbsp;&amp;nbsp; SET FAKENAME.&amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE1.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE2.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE3.DATA does not exist&lt;/P&gt;&lt;P&gt;ERROR: File WORK.FILE4.DATA does not exist&lt;/P&gt;&lt;P&gt;68&lt;/P&gt;&lt;P&gt;69&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175698#M45074</guid>
      <dc:creator>RyanSimmons</dc:creator>
      <dc:date>2015-07-31T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175699#M45075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm always doing this.&amp;nbsp; This particular way I can have data set options applied to each dataset. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;sql&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;noprint&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; compress(libname || &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"."&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ||memname||&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;' &amp;amp;DSoptions.'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;: datasets separated by &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; Dictionary.tables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; libname=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"LIBNAME"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; ; *&amp;lt;-- needs to be all caps;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;quit&lt;/STRONG&gt;;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 17:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175699#M45075</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2015-07-31T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175700#M45076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, because it would only work for the first one, so you need Phil's solution to add it in to all data sets. &lt;/P&gt;&lt;P&gt;The premise is correct, add the libname reference because the default is WORK. Since yours is not work you need to explicitly identify it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 18:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175700#M45076</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-31T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175701#M45077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit confused by what you mean, Reeza. I DID explicitly identify the libname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't quite understand why the method in the accepted answer doesn't work. You say that it would only work for "the first one" (unless all of the datasets are in the WORK library). In that case, Dreamer's answer is incorrect, and shouldn't be the accepted answer to the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 18:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175701#M45077</guid>
      <dc:creator>RyanSimmons</dc:creator>
      <dc:date>2015-07-31T18:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to append all dataset in one library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175702#M45078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked for the OP question, because their library was WORK and they get to determine the Correct Answer.&amp;nbsp; That doesn't mean its correct for your situation or all situations, or even the best answer. &lt;/P&gt;&lt;P&gt;The modification to Dreamer's answer to make it applicable to your situation is below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PROC SQL;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;SELECT catx('.', libname, MEMNAME) INTO : MEMNAMES SEPARATED BY ' ' from dictionary.tables where libname='&amp;lt;&amp;lt;LIBNAME&amp;gt;&amp;gt;';quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DATA WANT;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;SET &amp;amp;MEMNAMES.;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 19:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-append-all-dataset-in-one-library/m-p/175702#M45078</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-31T19:17:44Z</dc:date>
    </item>
  </channel>
</rss>

