<?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: using proc compare while pairing idnumber of two datasets in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-proc-compare-while-pairing-idnumber-of-two-datasets/m-p/449679#M29086</link>
    <description>&lt;P&gt;It would depend on just what you are looking for from the comparison. Proc compare is often not the best choice when there is a significant difference in the number of records between the two data sets.&lt;/P&gt;
&lt;P&gt;You should describe exactly what you are looking for from the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to determine if values from the test data set differ from those in the base data only for the idnumbers in the test data set then the approach would be to select the records from the base data set based on those in the test set and then use proc compare. Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table baseid as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select b.*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from (select distinct idnumber from&amp;nbsp;test) as a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base as b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.idnumber = b.idnumber&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there were other specific types of questions about the two sets then you may need to provide more details.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2018 14:48:04 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-03-29T14:48:04Z</dc:date>
    <item>
      <title>using proc compare while pairing idnumber of two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-proc-compare-while-pairing-idnumber-of-two-datasets/m-p/449617#M29083</link>
      <description>&lt;P&gt;Many of our oracles tables will be changed in few weeks.&amp;nbsp; Up to now, we have test table are available but, the number of observations is low compare to the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to compare the old table with the test table but I want to&amp;nbsp;paired&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the idnumber of the old table with the idnumber of the test table then compare the other variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a nice way to do that with proc compare?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-proc-compare-while-pairing-idnumber-of-two-datasets/m-p/449617#M29083</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-03-29T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: using proc compare while pairing idnumber of two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-proc-compare-while-pairing-idnumber-of-two-datasets/m-p/449679#M29086</link>
      <description>&lt;P&gt;It would depend on just what you are looking for from the comparison. Proc compare is often not the best choice when there is a significant difference in the number of records between the two data sets.&lt;/P&gt;
&lt;P&gt;You should describe exactly what you are looking for from the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to determine if values from the test data set differ from those in the base data only for the idnumbers in the test data set then the approach would be to select the records from the base data set based on those in the test set and then use proc compare. Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table baseid as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select b.*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from (select distinct idnumber from&amp;nbsp;test) as a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base as b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.idnumber = b.idnumber&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there were other specific types of questions about the two sets then you may need to provide more details.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-proc-compare-while-pairing-idnumber-of-two-datasets/m-p/449679#M29086</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-29T14:48:04Z</dc:date>
    </item>
  </channel>
</rss>

