<?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 How to merge files with similar names in the same library in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51861#M14248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the datasets are different. So it is definitely a merge. The datasets have one same variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 17:52:34 GMT</pubDate>
    <dc:creator>bncoxuk</dc:creator>
    <dc:date>2011-11-21T17:52:34Z</dc:date>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51859#M14246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have many files in the work library with the names as data01, data02, data03, ... data50.&amp;nbsp; All these dataset have the same contents, with one variable as the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can I merge all these files easily? I tried to do it using : as below, but failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge data: ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 17:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51859#M14246</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-11-21T17:36:15Z</dc:date>
    </item>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51860#M14247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they all have the same contents it sounds more like you want to set them together rather than merge them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 17:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51860#M14247</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-11-21T17:43:02Z</dc:date>
    </item>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51861#M14248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the datasets are different. So it is definitely a merge. The datasets have one same variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 17:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51861#M14248</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-11-21T17:52:34Z</dc:date>
    </item>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51862#M14249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get an error message or just not get the expected results?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you running at least version 9.2?&lt;/P&gt;&lt;P&gt;Works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data01 data02;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;data data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge data:;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 17:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51862#M14249</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-21T17:57:18Z</dc:date>
    </item>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51863#M14250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom. I just got it right. Basially, the values in the key variable are: pctile1, pctile2, ... pctile10, pctile11, So the values are not sorted, thought it looks like they are &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; Sorry and thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 18:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51863#M14250</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-11-21T18:04:40Z</dc:date>
    </item>
    <item>
      <title>How to merge files with similar names in the same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51864#M14251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even it worked for me! Here's what I have: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data01;&lt;/P&gt;&lt;P&gt;input key col1;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 101&lt;/P&gt;&lt;P&gt;2 102&lt;/P&gt;&lt;P&gt;3 103&lt;/P&gt;&lt;P&gt;4 104&lt;/P&gt;&lt;P&gt;5 105&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data02;&lt;/P&gt;&lt;P&gt;input key col1;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 101 &amp;lt;-- This col is same as previous dataset&lt;/P&gt;&lt;P&gt;6 102&lt;/P&gt;&lt;P&gt;7 103&lt;/P&gt;&lt;P&gt;8 104&lt;/P&gt;&lt;P&gt;9 105&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;merge data01 data02;&lt;/P&gt;&lt;P&gt;by key;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result Set: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key Col1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 105&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&lt;/P&gt;&lt;P&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 105&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the same column name in all the tables? If possible provide example of what you have. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 18:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-merge-files-with-similar-names-in-the-same-library/m-p/51864#M14251</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2011-11-21T18:08:36Z</dc:date>
    </item>
  </channel>
</rss>

