<?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 seperate non matching records for 2 dataset in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29061#M4016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you only care about non-matching records, SQL is more handy as it does not require sorting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table nm as&lt;/P&gt;&lt;P&gt;select * from t2&lt;/P&gt;&lt;P&gt;except&lt;/P&gt;&lt;P&gt;select * from t1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 17:51:53 GMT</pubDate>
    <dc:creator>2much2learn</dc:creator>
    <dc:date>2012-01-12T17:51:53Z</dc:date>
    <item>
      <title>how to seperate non matching records for 2 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29059#M4014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have 2 dataset for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;b 2&lt;/P&gt;&lt;P&gt;c 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;b 1&lt;/P&gt;&lt;P&gt;c 1&lt;/P&gt;&lt;P&gt;a 2&lt;/P&gt;&lt;P&gt;b 2&lt;/P&gt;&lt;P&gt;c 2&lt;/P&gt;&lt;P&gt;a 3&lt;/P&gt;&lt;P&gt;b 3&lt;/P&gt;&lt;P&gt;c 3&lt;/P&gt;&lt;P&gt;how can I seperate non matching records from table-2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 17:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29059#M4014</guid>
      <dc:creator>mrug12</dc:creator>
      <dc:date>2012-01-12T17:20:41Z</dc:date>
    </item>
    <item>
      <title>how to seperate non matching records for 2 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29060#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not 100% sure about what exactly OP wanted, but here to start the discussion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t1;&lt;/P&gt;&lt;P&gt;infile cards;&lt;/P&gt;&lt;P&gt;input id $ a;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t2;&lt;/P&gt;&lt;P&gt;infile cards;&lt;/P&gt;&lt;P&gt;input id $ a;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=t1;&lt;/P&gt;&lt;P&gt;by id a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=t2;&lt;/P&gt;&lt;P&gt;by id a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data m nm;&lt;/P&gt;&lt;P&gt;merge t1 (in=t1) t2(in=t2);&lt;/P&gt;&lt;P&gt;by id a;&lt;/P&gt;&lt;P&gt;if t1 and t2 then output m;&lt;/P&gt;&lt;P&gt;else if t2 and not t1 then output nm;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'m' will be the records shared by two tables, nm will be the records uniquely exist in table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 17:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29060#M4015</guid>
      <dc:creator>2much2learn</dc:creator>
      <dc:date>2012-01-12T17:44:22Z</dc:date>
    </item>
    <item>
      <title>how to seperate non matching records for 2 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29061#M4016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you only care about non-matching records, SQL is more handy as it does not require sorting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table nm as&lt;/P&gt;&lt;P&gt;select * from t2&lt;/P&gt;&lt;P&gt;except&lt;/P&gt;&lt;P&gt;select * from t1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 17:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-seperate-non-matching-records-for-2-dataset/m-p/29061#M4016</guid>
      <dc:creator>2much2learn</dc:creator>
      <dc:date>2012-01-12T17:51:53Z</dc:date>
    </item>
  </channel>
</rss>

