<?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 no output observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386714#M92657</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I use proc compare to test whether two datasets have same values. Here is the code:&lt;/P&gt;&lt;P&gt;proc compare base=aa compare=bb out=comparing criterion=0.01;&lt;BR /&gt;var &amp;nbsp;A B C D PropA propB propc propd;&lt;BR /&gt;with &amp;nbsp;a b c d a_1 b_1 c_1 d_1 ;&lt;BR /&gt;id regid;&lt;BR /&gt;by regid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the log window shows:&lt;/P&gt;&lt;P&gt;There were 4805 observations read from the data set WORK.AA.&lt;BR /&gt;NOTE: There were 4531 observations read from the data set WORK.BB.&lt;BR /&gt;NOTE: The data set WORK.COMPARING has 0 observations and 28 variables.&lt;BR /&gt;NOTE: PROCEDURE COMPARE used (Total process time):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The BB dataset has 4805 obs two, why the log window shows 4531 obs. And the output dataset comparing has 0 obs. There is no error warning on log window. What is wrong with my program?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 17:07:33 GMT</pubDate>
    <dc:creator>daisy6</dc:creator>
    <dc:date>2017-08-09T17:07:33Z</dc:date>
    <item>
      <title>Proc compare no output observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386714#M92657</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I use proc compare to test whether two datasets have same values. Here is the code:&lt;/P&gt;&lt;P&gt;proc compare base=aa compare=bb out=comparing criterion=0.01;&lt;BR /&gt;var &amp;nbsp;A B C D PropA propB propc propd;&lt;BR /&gt;with &amp;nbsp;a b c d a_1 b_1 c_1 d_1 ;&lt;BR /&gt;id regid;&lt;BR /&gt;by regid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the log window shows:&lt;/P&gt;&lt;P&gt;There were 4805 observations read from the data set WORK.AA.&lt;BR /&gt;NOTE: There were 4531 observations read from the data set WORK.BB.&lt;BR /&gt;NOTE: The data set WORK.COMPARING has 0 observations and 28 variables.&lt;BR /&gt;NOTE: PROCEDURE COMPARE used (Total process time):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The BB dataset has 4805 obs two, why the log window shows 4531 obs. And the output dataset comparing has 0 obs. There is no error warning on log window. What is wrong with my program?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 17:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386714#M92657</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-08-09T17:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare no output observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386744#M92664</link>
      <description>&lt;P&gt;By default, the OUT= data set contains an observation for each pair of matching observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No output records should mean that there were no matches on ALL of the variables involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want one of the options OUTALL, OUTBASE, OUTCOMP instead of the OUTDIF which is the default.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386744#M92664</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-09T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare no output observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386751#M92667</link>
      <description>&lt;P&gt;I was&amp;nbsp;unable to reproduce the discrepancy in observation count for BB, but I reproduced the other results when I used&amp;nbsp;two input data sets AA and BB that had no values of REGID in common.&amp;nbsp;If you want the output data set to include nonmatching observations, remove the BY statement and add the OUTALL option to the PROC COMPARE statement.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386751#M92667</guid>
      <dc:creator>RickAster</dc:creator>
      <dc:date>2017-08-09T18:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare no output observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386757#M92672</link>
      <description>&lt;P&gt;Thanks for reply! I use the other way to solve it. &amp;nbsp;By using aa.a-bb.a to test whether they have the same value. Thanks any way! By the way, I use the same code to test the other two datasets and the code&amp;nbsp;works well, so that I believe there should be something wrong with my data, not my code. Thanks anyway!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-no-output-observations/m-p/386757#M92672</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-08-09T18:36:49Z</dc:date>
    </item>
  </channel>
</rss>

