<?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: Proc Sql Merging two datasets based on variables of different names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499660#M132988</link>
    <description>&lt;P&gt;Yes, the variables are the same type. Just wanted to make sure the merge would work correctly. Thank you for checking that for me&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 18:51:07 GMT</pubDate>
    <dc:creator>kmardinian</dc:creator>
    <dc:date>2018-09-27T18:51:07Z</dc:date>
    <item>
      <title>Proc Sql Merging two datasets based on variables of different names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499593#M132966</link>
      <description>&lt;P&gt;Hi, I would like to merge together the dataset dm1 and all2, but the variables that match up are labeled differently. Would this be the correct way to merge them together without losing observations? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table all2&lt;BR /&gt;as select * from dm1 a full join all b on a.subjid=b.subjid_vm;&lt;BR /&gt;run&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 16:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499593#M132966</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-27T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sql Merging two datasets based on variables of different names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499630#M132982</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139341"&gt;@kmardinian&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I would like to merge together the dataset dm1 and all2, but the variables that match up are labeled differently. Would this be the correct way to merge them together without losing observations? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table all2&lt;BR /&gt;as select * from dm1 a full join all b on a.subjid=b.subjid_vm;&lt;BR /&gt;run&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Should work as long as the values of the two variables are of the same type and have the same content. If character you might have issues with leading blanks or capitalization ("Name" does not equal "name") which could be addressed by&lt;/P&gt;
&lt;P&gt;upcase(a.subjid) = upcase(b.subjid_vm)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 18:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499630#M132982</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-27T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sql Merging two datasets based on variables of different names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499660#M132988</link>
      <description>&lt;P&gt;Yes, the variables are the same type. Just wanted to make sure the merge would work correctly. Thank you for checking that for me&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 18:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Sql-Merging-two-datasets-based-on-variables-of-different/m-p/499660#M132988</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-27T18:51:07Z</dc:date>
    </item>
  </channel>
</rss>

