<?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 to compare the data sets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824623#M35171</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Q: With proc compare can I compare the entire data set or I have to select few columns and then compare?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ans: Both, but by default proc compare compares entire dataset. Using Var statement restricts the comparison of the values of variables to the ones named in the VAR statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q: Also, is there a link where I can check how to write the proc compare statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xrf09nbjnxjzn1kdmbcajf1s1v.htm" target="_self"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xrf09nbjnxjzn1kdmbcajf1s1v.htm&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0c1y14wyd3u7yn1dmfcpaejllsn.htm" target="_self"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0c1y14wyd3u7yn1dmfcpaejllsn.htm&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 13:00:43 GMT</pubDate>
    <dc:creator>kleelasiva9</dc:creator>
    <dc:date>2022-07-21T13:00:43Z</dc:date>
    <item>
      <title>Proc compare to compare the data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824615#M35167</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I want to compare two huge data set with lot of rows and columns. With proc compare can I compare the entire data set or I have to select few columns and then compare? Also, is there a link where I can check how to write the proc compare statement?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824615#M35167</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-07-21T12:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare to compare the data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824621#M35170</link>
      <description>&lt;P&gt;Yes, PROC COMPARE can compare entire datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1nwxbchh5hpu1n1h28kmici2awd.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1nwxbchh5hpu1n1h28kmici2awd.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare base=dataset1 compare=dataset2;
  id PatientID;  *Almost always you want an ID statement, otherwise it will compare by row;
run;
  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824621#M35170</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-21T12:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare to compare the data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824623#M35171</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Q: With proc compare can I compare the entire data set or I have to select few columns and then compare?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ans: Both, but by default proc compare compares entire dataset. Using Var statement restricts the comparison of the values of variables to the ones named in the VAR statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q: Also, is there a link where I can check how to write the proc compare statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xrf09nbjnxjzn1kdmbcajf1s1v.htm" target="_self"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xrf09nbjnxjzn1kdmbcajf1s1v.htm&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0c1y14wyd3u7yn1dmfcpaejllsn.htm" target="_self"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0c1y14wyd3u7yn1dmfcpaejllsn.htm&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824623#M35171</guid>
      <dc:creator>kleelasiva9</dc:creator>
      <dc:date>2022-07-21T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare to compare the data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824664#M35179</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/391779"&gt;@Sandeep77&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I want to compare two huge data set with lot of rows and columns. With proc compare can I compare the entire data set or I have to select few columns and then compare? Also, is there a link where I can check how to write the proc compare statement?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you have any doubt about the order of data you may need to consider sorting by variables at sufficient level to identify unique records. If the data is identical other than sort order you will get many mismatches because record 1 is compared with record 1, 2 with 2, 3 with 3 by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 15:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare-to-compare-the-data-sets/m-p/824664#M35179</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-21T15:53:27Z</dc:date>
    </item>
  </channel>
</rss>

