<?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: Merge all datasets in library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97418#M20551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... just modify the code (without "SEPARATED BY" you only get one memname)&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;proc sql noprint;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;select memname into : names separated by ' '&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;from dictionary.tables &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;where libname='WORK'; /* note: libname must be in upcase */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 18:05:36 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2012-04-27T18:05:36Z</dc:date>
    <item>
      <title>Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97413#M20546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 15 datasets in a library. the data is already sorted. is there a way to merge them all together with out having to write each one out?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 16:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97413#M20546</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2012-04-27T16:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97414#M20547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data class1 class2 class3;&lt;BR /&gt;&amp;nbsp; set sashelp.class;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;/*&amp;nbsp; if your datasets begin with same letters */ &lt;BR /&gt;&amp;nbsp; data want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; merge c:;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; by name;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* begin with different letters */&lt;/P&gt;&lt;P&gt; proc sql noprint;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; select memname into : names&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.tables &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname='WORK'; /* note: libname must be in upcase */&lt;BR /&gt; data want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; merge &amp;amp;names;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; by name;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 17:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97414#M20547</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T17:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97415#M20548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lin Lin!&lt;/P&gt;&lt;P&gt;this is just what i was looking for.&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 17:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97415#M20548</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2012-04-27T17:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97416#M20549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the SQL method seems to merge class1 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 17:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97416#M20549</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2012-04-27T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97417#M20550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry. using the updated one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select memname into : names&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt; separated by '&amp;nbsp; '&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.tables &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname='WORK'; /* note: libname must be in upcase */&lt;/P&gt;&lt;P&gt; data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; merge &amp;amp;names;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by name;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97417#M20550</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T18:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge all datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97418#M20551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... just modify the code (without "SEPARATED BY" you only get one memname)&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;proc sql noprint;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;select memname into : names separated by ' '&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;from dictionary.tables &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;where libname='WORK'; /* note: libname must be in upcase */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-all-datasets-in-library/m-p/97418#M20551</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-04-27T18:05:36Z</dc:date>
    </item>
  </channel>
</rss>

