<?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 proc compare, ony output unequal obs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725503#M80286</link>
    <description>&lt;P&gt;when I use proc compare to compare 2 data sets AND everything is 100% the same,&lt;/P&gt;
&lt;P&gt;I still get output because I use the ID statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I avoid this??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_0-1615480836494.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55821i1586CBFAB2804C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_0-1615480836494.png" alt="Jaheuk_0-1615480836494.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_1-1615480894498.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55822i2BA535047CB56DF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_1-1615480894498.png" alt="Jaheuk_1-1615480894498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 16:42:22 GMT</pubDate>
    <dc:creator>Jaheuk</dc:creator>
    <dc:date>2021-03-11T16:42:22Z</dc:date>
    <item>
      <title>proc compare, ony output unequal obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725503#M80286</link>
      <description>&lt;P&gt;when I use proc compare to compare 2 data sets AND everything is 100% the same,&lt;/P&gt;
&lt;P&gt;I still get output because I use the ID statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I avoid this??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_0-1615480836494.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55821i1586CBFAB2804C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_0-1615480836494.png" alt="Jaheuk_0-1615480836494.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_1-1615480894498.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55822i2BA535047CB56DF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_1-1615480894498.png" alt="Jaheuk_1-1615480894498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725503#M80286</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2021-03-11T16:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare, ony output unequal obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725508#M80289</link>
      <description>Does the answer from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; help?&lt;BR /&gt;See thread: &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Output-of-Proc-Compare-get-only-differences/td-p/345147" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Output-of-Proc-Compare-get-only-differences/td-p/345147&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
      <pubDate>Thu, 11 Mar 2021 16:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725508#M80289</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2021-03-11T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare, ony output unequal obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725531#M80294</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16722"&gt;@Jaheuk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;when I use proc compare to compare 2 data sets AND everything is 100% the same,&lt;/P&gt;
&lt;P&gt;I still get output because I use the ID statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I avoid this??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_0-1615480836494.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55821i1586CBFAB2804C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_0-1615480836494.png" alt="Jaheuk_0-1615480836494.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaheuk_1-1615480894498.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55822i2BA535047CB56DF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_1-1615480894498.png" alt="Jaheuk_1-1615480894498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does your log show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID does not "cause" this. Example:&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.class
   out=work.class1;
   by name;
run;

proc sort data=sashelp.class
   out=work.class2;
   by name;
run;

proc compare data=work.class1
      compare=work.class2
      outnoequal out=work.compare 
      method=absolute criterion=0.5;
   id name;
run;&lt;/PRE&gt;
&lt;P&gt;Which in my log:&lt;/P&gt;
&lt;PRE&gt;NOTE: There were 19 observations read from the data set WORK.CLASS1.
NOTE: There were 19 observations read from the data set WORK.CLASS2.
NOTE: The data set WORK.COMPARE has 0 observations and 7 variables.
NOTE: PROCEDURE COMPARE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;So an ID statement does not cause any issue.&lt;/P&gt;
&lt;P&gt;So one questions the claim of "100% the same".&lt;/P&gt;
&lt;P&gt;You might try removing the NOPRINT option and seeing what specific values are being reported as unequal.&lt;/P&gt;
&lt;P&gt;For example if I modify the weight value for Alice in the above example I get a table like:&lt;/P&gt;
&lt;PRE&gt;Value Comparison Results for Variables
__________________________________________________________
           ||       Base    Compare
 Name      ||     Weight     Weight      Diff.     % Diff
 ________  ||  _________  _________  _________  _________
           ||
 Alice     ||    99.0000    84.0000   -15.0000   -15.1515
__________________________________________________________

&lt;/PRE&gt;
&lt;P&gt;Which shows which specific value for the ID variables has a difference.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 17:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725531#M80294</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-11T17:16:55Z</dc:date>
    </item>
  </channel>
</rss>

