<?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 proc compare - Output difference with padded zero values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/415822#M67583</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare two datasets in sas using proc compare. One of the character variable is not matching and shows difference&amp;nbsp;however when i actual see the record the values are correct. They are defined as below in both base and comparing data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Base dataset --VARIABLE1 &amp;nbsp;;TYPE-Char &amp;nbsp; Len-16 &amp;nbsp;Format-$16. &amp;nbsp;Inf&lt;SPAN&gt;ormat-$16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Comp dataset --VARIABLE1 &amp;nbsp;;TYPE-Char &amp;nbsp; Len-23 &amp;nbsp;Format-$23. &amp;nbsp;Informat-$23.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, attached is the output for couple of records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2017 13:30:14 GMT</pubDate>
    <dc:creator>Sunboyss30</dc:creator>
    <dc:date>2017-11-23T13:30:14Z</dc:date>
    <item>
      <title>proc compare - Output difference with padded zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/415822#M67583</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare two datasets in sas using proc compare. One of the character variable is not matching and shows difference&amp;nbsp;however when i actual see the record the values are correct. They are defined as below in both base and comparing data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Base dataset --VARIABLE1 &amp;nbsp;;TYPE-Char &amp;nbsp; Len-16 &amp;nbsp;Format-$16. &amp;nbsp;Inf&lt;SPAN&gt;ormat-$16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Comp dataset --VARIABLE1 &amp;nbsp;;TYPE-Char &amp;nbsp; Len-23 &amp;nbsp;Format-$23. &amp;nbsp;Informat-$23.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, attached is the output for couple of records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 13:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/415822#M67583</guid>
      <dc:creator>Sunboyss30</dc:creator>
      <dc:date>2017-11-23T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - Output difference with padded zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/415824#M67584</link>
      <description>&lt;P&gt;To be sure, I'd add character variables of double length (eg 23 -&amp;gt; 46) and use put(...,$hex46.) format to convert the contents of your variables to hex notation. This allows detection of un-displayable characters or leading blanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 13:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/415824#M67584</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-23T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - Output difference with padded zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/416299#M67612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Actually the datasets are coming from two different databases Oracle and Teradata. And what if I dont want to change the format in the source datasets. Any other way of doing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 09:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/416299#M67612</guid>
      <dc:creator>Sunboyss30</dc:creator>
      <dc:date>2017-11-27T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - Output difference with padded zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/416307#M67613</link>
      <description>&lt;P&gt;I'd be MASSIVELY surprised if you could ever get a solid match in SAS when comparing ORACLE and TERADATA, as it involves three different environments.&lt;/P&gt;
&lt;P&gt;Pull the tables into SAS, run the compare, and then investigate the differences. This might give you clues what processes are necessary (during the import into SAS) to get the tables to a "common denominator".&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-Output-difference-with-padded-zero-values/m-p/416307#M67613</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-27T10:08:01Z</dc:date>
    </item>
  </channel>
</rss>

