<?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: proc compare in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895952#M1643</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448099"&gt;@Anandu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So then what is the answer does the validation with difference in observation but with same value. Got succeeded or failed due to difference in number of observation. It was an exam question MCQ&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I vote failed.&amp;nbsp; Especially if the question was about validating a dataset.&amp;nbsp; It's possible if someone said "validating the data in the smaller dataset" they might claim it passed, but if I had to choose for a test, I'd definitely choose failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I love the ERROR option for proc compare when validating data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;12   proc compare base=a compare=b error;
13   run;

ERROR: Data set WORK.B contains 1 observations not in WORK.A.
ERROR: The data sets WORK.A and WORK.B do not contain the same data. One or both data
       sets contain variables or observations not in the other. However, all comparisons
       are equal for the data in common.
NOTE: There were 5 observations read from the data set WORK.A.
NOTE: There were 6 observations read from the data set WORK.B.
&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Sep 2023 19:44:13 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-09-26T19:44:13Z</dc:date>
    <item>
      <title>proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895831#M1638</link>
      <description>&lt;P&gt;i found this question in an exam and was confused. In the question it was mentioned two datasets were validated using proc compare and the values were exact match but the observation number was different one has observation n=5 other n=6 so. The question was is the validation success or failure&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 05:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895831#M1638</guid>
      <dc:creator>Anandu</dc:creator>
      <dc:date>2023-09-26T05:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895844#M1639</link>
      <description>&lt;P&gt;code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;resetline;
data a;
  do x=1 to 5;
    output;
  end;
run;
data b;
  do x=1 to 6;
    output;
  end;
run;

proc compare base=a compare=b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;log:&lt;/P&gt;
&lt;PRE&gt;11
12   proc compare base=a compare=b;
13   run;

NOTE: There were 5 observations read from the data set WORK.A.
NOTE: There were 6 observations read from the data set WORK.B.
NOTE: PROCEDURE COMPARE used (Total process time):
      real time           0.03 seconds
      user cpu time       0.04 seconds
      system cpu time     0.00 seconds
      memory              8057.07k
      OS Memory           30208.00k
&lt;/PRE&gt;
&lt;P&gt;output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_0-1695712384334.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88336i5C44565974E48BF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_0-1695712384334.png" alt="yabwon_0-1695712384334.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log with SYSINFO:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
14
15   %put * &amp;amp;=SYSINFO. *;
* SYSINFO=128 *
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after looking at the SYSINFO return codes here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm#n0301m0ic1y4w7n0znjn1mslzi53" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jbbrf1tztya8n1tju77t35dej9.htm#n0301m0ic1y4w7n0znjn1mslzi53&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;With value 128 - I would say: "Comparison Failed". In general everything greater or equal 64 I consider a fail (sometimes 16 too).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 07:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895844#M1639</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-09-26T07:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895845#M1640</link>
      <description>So then what is the answer does the validation with difference in observation but with same value. Got succeeded or failed due to difference in number of observation. It was an exam question MCQ</description>
      <pubDate>Tue, 26 Sep 2023 07:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895845#M1640</guid>
      <dc:creator>Anandu</dc:creator>
      <dc:date>2023-09-26T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895909#M1642</link>
      <description>&lt;P&gt;What criteria were provided in the question for determining success or failure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That could depend on why someone runs proc compare and the situation or reason determines the "success" or "failure".&lt;/P&gt;
&lt;P&gt;Consider: I am running code on an update source file that is &lt;STRONG&gt;expected&lt;/STRONG&gt; to have more observations than an older file. But I am looking to see if my process on the updated source produces the same results for some of the records. That has a different "success" than if I am recovering an backup, for example, and want to verify that the compared data set&amp;nbsp;&lt;STRONG&gt;exactly&lt;/STRONG&gt; matches the archive copy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is not more description to the problem to be solved in regards to any value judgement (success or failure) then the question is poorly constructed as it is lacking in details.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895909#M1642</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-26T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895952#M1643</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448099"&gt;@Anandu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So then what is the answer does the validation with difference in observation but with same value. Got succeeded or failed due to difference in number of observation. It was an exam question MCQ&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I vote failed.&amp;nbsp; Especially if the question was about validating a dataset.&amp;nbsp; It's possible if someone said "validating the data in the smaller dataset" they might claim it passed, but if I had to choose for a test, I'd definitely choose failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I love the ERROR option for proc compare when validating data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;12   proc compare base=a compare=b error;
13   run;

ERROR: Data set WORK.B contains 1 observations not in WORK.A.
ERROR: The data sets WORK.A and WORK.B do not contain the same data. One or both data
       sets contain variables or observations not in the other. However, all comparisons
       are equal for the data in common.
NOTE: There were 5 observations read from the data set WORK.A.
NOTE: There were 6 observations read from the data set WORK.B.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 19:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/proc-compare/m-p/895952#M1643</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-26T19:44:13Z</dc:date>
    </item>
  </channel>
</rss>

