<?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 New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893598#M39748</link>
    <description>thank you, but neither the fuzz option worked. for the variables name, the difference was simply capital letter vs lower letter, and i solved it by formatting all variable names to capital letters</description>
    <pubDate>Mon, 11 Sep 2023 16:26:36 GMT</pubDate>
    <dc:creator>ari2495</dc:creator>
    <dc:date>2023-09-11T16:26:36Z</dc:date>
    <item>
      <title>Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893563#M39744</link>
      <description>&lt;P&gt;hi, i'm using a proc compare. Code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare 
base=db1
compare=db2
printall;
title "title of compare";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i got a code error, here is the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Values of the following 24 variables compare unequal: variable names
WARNING: The data sets db1 and db2 contain unequal values.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i have manually checked some of the values, and it is not true that they are unequal, so i suppose there is a problem. Actually, i have detected a problem with variable names, some were lower case and some other were uppercase so i turned everything uppercase but it did not worked, the log goes on saying some variables are unequal. i have also checked the columns order, they are exactly equal. What could I check to solve the problem? thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893563#M39744</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2023-09-11T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893582#M39745</link>
      <description>&lt;P&gt;How did you manually check values? Note that looking by eye without considering the FORMAT involved may not see very small differences because the number of decimals isn't displayed or is rounded and appears the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you sort the data sets by the same variables to ensure the order is the same? That is one common issue as unless you provide an ID statement to align observations based on values of these variables the comparison is record by record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the summary section of the output that describes number of variables variables common to both sets show?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893582#M39745</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-11T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893584#M39746</link>
      <description>&lt;P&gt;Are these numeric variables, if so use the fuzz option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare 
base=db1
compare=db2
printall fuzz=0.001;
title "title of compare";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For variable names, can you post an example of the output where the difference occurs?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893584#M39746</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-09-11T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893595#M39747</link>
      <description>&lt;P&gt;after running the proc compare statement, i identified the variables which are supposed to have unequal values; then, i appended them through a left join and i applied a filter through a where statement to display cases where variable 1 is not equal no variable 2 and i found that these values were the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, i sorted the two datasets using a sort statement by all variables, so i'm thinking that i could try to format the values also because when i displayed the summary of the compare statement i found out that the maximum difference was&amp;nbsp;&lt;/P&gt;
&lt;PRE class="batch"&gt;4.191E-09&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893595#M39747</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2023-09-11T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893598#M39748</link>
      <description>thank you, but neither the fuzz option worked. for the variables name, the difference was simply capital letter vs lower letter, and i solved it by formatting all variable names to capital letters</description>
      <pubDate>Mon, 11 Sep 2023 16:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893598#M39748</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2023-09-11T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893600#M39749</link>
      <description>If the differences are as small as you indicate fuzz should work, but look at Criterion/Method options in PROC COMPARE as well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893600#M39749</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-09-11T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893601#M39750</link>
      <description>Actually, i've just tried and unfortunately fuzz option did not work. i'll try criterion method options, thanks</description>
      <pubDate>Mon, 11 Sep 2023 16:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893601#M39750</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2023-09-11T16:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893651#M39754</link>
      <description>&lt;P&gt;You don't have an ID statement in your PROC COMPARE, so SAS is comparing row-for-row (1 with 1, 2 with 2 etc). If your two datasets are not in the same order, then SAS will report unequal values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-compare/m-p/893651#M39754</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-11T21:18:01Z</dc:date>
    </item>
  </channel>
</rss>

