<?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: compare data sets and extract the delta comparing all the variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/compare-data-sets-and-extract-the-delta-comparing-all-the/m-p/271659#M54044</link>
    <description>&lt;P&gt;Well, proc compare is the obvious choice, you can send the output to a dataset, and then further process it for a nice output. &amp;nbsp;I find its sometimes a bit difficult to review though. &amp;nbsp;I would suggest you try the two options, sometimes, if I want to see data in one and not the other i might use SQL:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select *
  from   HAVE1
  except 
  select * 
  from   HAVE2;
quit;&lt;/PRE&gt;
&lt;P&gt;Its a bit difficult as its very much a matter of preference, what you want the output to look like, what kind of level of checking etc. &amp;nbsp;Could be merging one to the other and then doing processing in datastep/sql would be helpful, i.e. if values are similar/match but don't logically etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2016 09:34:20 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-05-19T09:34:20Z</dc:date>
    <item>
      <title>compare data sets and extract the delta comparing all the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-data-sets-and-extract-the-delta-comparing-all-the/m-p/271658#M54043</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking fo an effective way (I assume proc compare or proc sql) to compare 2 data sets. The second data set should contain almost the same data of the previou one (some small changes) and additional observations.&lt;/P&gt;&lt;P&gt;My aim is to get the complete delta between the two data sets, i.e. the changes to the existing data and the new ones.&lt;/P&gt;&lt;P&gt;Any suggestion? Thanks a lot, SH.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 09:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-data-sets-and-extract-the-delta-comparing-all-the/m-p/271658#M54043</guid>
      <dc:creator>Sir_Highbury</dc:creator>
      <dc:date>2016-05-19T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: compare data sets and extract the delta comparing all the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-data-sets-and-extract-the-delta-comparing-all-the/m-p/271659#M54044</link>
      <description>&lt;P&gt;Well, proc compare is the obvious choice, you can send the output to a dataset, and then further process it for a nice output. &amp;nbsp;I find its sometimes a bit difficult to review though. &amp;nbsp;I would suggest you try the two options, sometimes, if I want to see data in one and not the other i might use SQL:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select *
  from   HAVE1
  except 
  select * 
  from   HAVE2;
quit;&lt;/PRE&gt;
&lt;P&gt;Its a bit difficult as its very much a matter of preference, what you want the output to look like, what kind of level of checking etc. &amp;nbsp;Could be merging one to the other and then doing processing in datastep/sql would be helpful, i.e. if values are similar/match but don't logically etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 09:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-data-sets-and-extract-the-delta-comparing-all-the/m-p/271659#M54044</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-19T09:34:20Z</dc:date>
    </item>
  </channel>
</rss>

