<?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 Easy way to compare in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143291#M28661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone and thank you for read it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I'm trying to do a kind of auto validation. For do these I create a expected output the first time and I&lt;/P&gt;&lt;P&gt;confirm that all is okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first problem appears when I try to use the PROC COMPARE to decide if my validated dataset and me &lt;/P&gt;&lt;P&gt;new dataset are the same. For example, if I compare my base with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;set base&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proc compare say there are XX line equal and 0 unequal and this is false, there are not the same dataset.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My first question is, Exist any procedure that say you YES/NO to the comparation?&lt;BR /&gt;&lt;/SPAN&gt;If the answer is NO, there exist any easy way to know if two dataset are exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other question is looking further, I should compare .TXT with other .TXT how can I do it in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt; Antonio Rodríguez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 14:15:26 GMT</pubDate>
    <dc:creator>arodriguez</dc:creator>
    <dc:date>2014-01-16T14:15:26Z</dc:date>
    <item>
      <title>Easy way to compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143291#M28661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone and thank you for read it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I'm trying to do a kind of auto validation. For do these I create a expected output the first time and I&lt;/P&gt;&lt;P&gt;confirm that all is okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first problem appears when I try to use the PROC COMPARE to decide if my validated dataset and me &lt;/P&gt;&lt;P&gt;new dataset are the same. For example, if I compare my base with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;set base&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proc compare say there are XX line equal and 0 unequal and this is false, there are not the same dataset.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My first question is, Exist any procedure that say you YES/NO to the comparation?&lt;BR /&gt;&lt;/SPAN&gt;If the answer is NO, there exist any easy way to know if two dataset are exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other question is looking further, I should compare .TXT with other .TXT how can I do it in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt; Antonio Rodríguez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143291#M28661</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2014-01-16T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143292#M28662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're looking for a line that says the following I assume: &lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Number of Observations in WORK.CLASS2 but not in WORK.CLASS: 19.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree the note is misleading, but is actually correct. All compared values were the same, but one had obs not in the other, so those are not comapred.&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt; NOTE: No unequal values were found. All values compared are exactly equal.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run with the BriefSummary option you get two notes:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;NOTE: Data set WORK.CLASS2 contains 19 observations not in WORK.CLASS.&lt;/P&gt;
&lt;P&gt;NOTE: No unequal values were found. All values compared are exactly equal.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use the OUTSTATS= option and verify in a second step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 15:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143292#M28662</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-16T15:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143293#M28663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solve part of the problem of understand the proc compare, but if I compere two datasets, with the same variables&lt;/P&gt;&lt;P&gt;and the same values and a different format, for example insteed of $5. put $30. there are not the same dataset, but the&lt;/P&gt;&lt;P&gt;proc compare say that are equal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 07:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143293#M28663</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2014-01-17T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143294#M28664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RTM.&lt;/P&gt;&lt;P&gt;Proc compare will tell you when variables are different, formats, types, attributes etc you just need to look in different places.&lt;/P&gt;&lt;P&gt;Or roll your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p1k00d45g03uv8n1bfx3d20breg6.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p1k00d45g03uv8n1bfx3d20breg6.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143294#M28664</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-17T15:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143295#M28665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At last I have found how to do it. There is a option in proc compare to put a warning or an error if there is something diferent. I have activated&lt;/P&gt;&lt;P&gt;this option, then I look the content of SYSERRORTEXT or SYSWARNINGTEXT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 07:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Easy-way-to-compare/m-p/143295#M28665</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2014-02-03T07:54:06Z</dc:date>
    </item>
  </channel>
</rss>

