<?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 compare different dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694673#M25134</link>
    <description>&lt;P&gt;I have three different datasets and I am trying to find same ID from the three datasets. I have used proc compare but, when using proc compare, you can only compare two datasets at a time. I was wondering if there is another way to compare the three data at the same time?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 20:20:23 GMT</pubDate>
    <dc:creator>hjjijkkl</dc:creator>
    <dc:date>2020-10-27T20:20:23Z</dc:date>
    <item>
      <title>How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694673#M25134</link>
      <description>&lt;P&gt;I have three different datasets and I am trying to find same ID from the three datasets. I have used proc compare but, when using proc compare, you can only compare two datasets at a time. I was wondering if there is another way to compare the three data at the same time?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 20:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694673#M25134</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-10-27T20:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694674#M25135</link>
      <description>&lt;P&gt;So you want to find ID's that are present in all three datasets?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 20:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694674#M25135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T20:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694685#M25136</link>
      <description>Yes.</description>
      <pubDate>Tue, 27 Oct 2020 20:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694685#M25136</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-10-27T20:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694690#M25137</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select t1.id
  from table1 t1, table2 t2, table3 t3
  where t1.id = t2.id and t2.id = t3.id
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Oct 2020 21:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694690#M25137</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T21:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694705#M25139</link>
      <description>Thank you! it worked. What if we want to compare more than one variable? For example, ID and start date? How would  you modify the above code ?</description>
      <pubDate>Tue, 27 Oct 2020 21:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694705#M25139</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-10-27T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694925#M25151</link>
      <description>What if we want to compare more than one variable? For example, ID and start date? How would you modify the above code ?</description>
      <pubDate>Wed, 28 Oct 2020 15:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694925#M25151</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-10-28T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694960#M25155</link>
      <description>&lt;P&gt;Expand the where condition, if you need to check for combinations of id and date.&lt;/P&gt;
&lt;P&gt;If you only need to check the date itself, run a separate select similar to the one for id.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 17:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-compare-different-dataset/m-p/694960#M25155</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-28T17:37:50Z</dc:date>
    </item>
  </channel>
</rss>

