<?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: Match Merge SAS Data Set Differences in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507770#M1509</link>
    <description>&lt;P&gt;If you wanted to compare two datasets then there is a procedure for that &lt;STRONG&gt;PROC COMPARE.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this paper for more information&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/149-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/149-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 14:58:13 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-10-26T14:58:13Z</dc:date>
    <item>
      <title>Match Merge SAS Data Set Differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507767#M1507</link>
      <description>&lt;P&gt;I have a question in SAS. How do you normally determine a difference in two data sets? Below is the code that I have used. This is what I have used to determine if records are in one data set but not the other. For example, if someone running the code got higher or lower record counts. I am looking for any alternatives. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Removed&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507767#M1507</guid>
      <dc:creator>user112a2</dc:creator>
      <dc:date>2019-04-26T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Match Merge SAS Data Set Differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507770#M1509</link>
      <description>&lt;P&gt;If you wanted to compare two datasets then there is a procedure for that &lt;STRONG&gt;PROC COMPARE.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this paper for more information&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/149-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/149-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507770#M1509</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-26T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Match Merge SAS Data Set Differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507773#M1510</link>
      <description>&lt;P&gt;SAS has a procedure Proc Compare that may help.&amp;nbsp; It will report on such things as different types, lengths, formats and labels for variables as well as value comparisons (in possibly more detail than you want sometimes).&lt;/P&gt;
&lt;P&gt;It does help if the data sets are sorted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a brief example:&lt;/P&gt;
&lt;PRE&gt;data work.class;
   set sashelp.class;
   if name='John' then sex='F';
   htweight = height*weight;
run;

proc compare base=sashelp.class compare=work.class;
run;&lt;/PRE&gt;
&lt;P&gt;I added a variable so you can see something different in the number of variables and a value so you can see what happens with a different value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get different levels of information depending on concerns.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507773#M1510</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-26T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Match Merge SAS Data Set Differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507787#M1512</link>
      <description>&lt;P&gt;More specifically, in the case of (slightly) different sets of unique keys (combinations of BY variables) in two sorted datasets you would use the ID statement of &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p1l5iwaf47ma83n1euxxp10g8xh5.htm&amp;amp;locale=en" target="_blank"&gt;PROC COMPARE&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare data=lob.req_1_3_17i c=lob.req_1_3_17l listall;
id acct_nb day_time_dim_nb txn_am txn_posting_seq cs_txn_cd req_1_3_excl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I often use a DATA step with a MERGE statement (or a macro containing such code) like you in this case because the output datasets are more suitable for my purposes than those available from PROC COMPARE (not shown in above code; see OUT= option in the documentation).&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Match-Merge-SAS-Data-Set-Differences/m-p/507787#M1512</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-26T15:38:21Z</dc:date>
    </item>
  </channel>
</rss>

