<?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 Merging 2 or More Data Sets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69975#M20148</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I want to find out if I can merge 2 or more data sets by "Name".&lt;BR /&gt;
&lt;BR /&gt;
Eg. John So appears in 2 different data sets, I want to merge these 2 data sets by John So's name. &lt;BR /&gt;
&lt;BR /&gt;
Is this possible.&lt;BR /&gt;
&lt;BR /&gt;
cheers.</description>
    <pubDate>Mon, 07 Feb 2011 23:02:35 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-02-07T23:02:35Z</dc:date>
    <item>
      <title>Merging 2 or More Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69975#M20148</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I want to find out if I can merge 2 or more data sets by "Name".&lt;BR /&gt;
&lt;BR /&gt;
Eg. John So appears in 2 different data sets, I want to merge these 2 data sets by John So's name. &lt;BR /&gt;
&lt;BR /&gt;
Is this possible.&lt;BR /&gt;
&lt;BR /&gt;
cheers.</description>
      <pubDate>Mon, 07 Feb 2011 23:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69975#M20148</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-07T23:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging 2 or More Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69976#M20149</link>
      <description>Yes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You do need to make sure your data is the EXACT same in each of the datasets when merging by character variables.  I usually upcase everything to avoid cases not matching. &lt;BR /&gt;
&lt;BR /&gt;
You can use the merge and by statement;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
merge have1 have2 have3;&lt;BR /&gt;
by name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Or you could do some joins in SQL.  Basically an extension of a two way join. Search either SAS Support or LexJansen.com for papers on joining if you need details on joining.</description>
      <pubDate>Tue, 08 Feb 2011 00:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69976#M20149</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-02-08T00:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merging 2 or More Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69977#M20150</link>
      <description>Thanks Reeza I will try this.&lt;BR /&gt;
&lt;BR /&gt;
cheers</description>
      <pubDate>Tue, 08 Feb 2011 03:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-2-or-More-Data-Sets/m-p/69977#M20150</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-08T03:06:34Z</dc:date>
    </item>
  </channel>
</rss>

