<?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 two columns in the same table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272725#M58384</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if dt_date = input(substr(sr_date,1,10),ddmmyy10.) then do .....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BTW, SAS only knows two data types, character and numeric.&lt;/P&gt;
&lt;P&gt;'SAS dates' are numeric values containing the number of days since 01/01/1960 and having one of the date formats assigned.&lt;/P&gt;
&lt;P&gt;There are no varchar variables in SAS, only fixed length character.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 13:30:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-05-24T13:30:18Z</dc:date>
    <item>
      <title>Compare two columns in the same table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272713#M58383</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to SAS and I want to compare the below fields in the same table&lt;/P&gt;&lt;P&gt;Please let me know how to compare the two different datatype ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sr_date&amp;nbsp; mentioned as varchar_type&lt;/P&gt;&lt;P&gt;dt_date mentioned as date_type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sr_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; dt_date&lt;/P&gt;&lt;P&gt;10/05/2014 14:01:18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-10-05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date values should be same in both fields .if anyting mismatched, query should pick the unmatched record&lt;/P&gt;&lt;P&gt;Please let me know how to write a query for the above scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272713#M58383</guid>
      <dc:creator>goms</dc:creator>
      <dc:date>2016-05-24T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns in the same table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272725#M58384</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if dt_date = input(substr(sr_date,1,10),ddmmyy10.) then do .....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BTW, SAS only knows two data types, character and numeric.&lt;/P&gt;
&lt;P&gt;'SAS dates' are numeric values containing the number of days since 01/01/1960 and having one of the date formats assigned.&lt;/P&gt;
&lt;P&gt;There are no varchar variables in SAS, only fixed length character.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272725#M58384</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-05-24T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns in the same table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272759#M58386</link>
      <description>&lt;P&gt;Are you working with a SAS dataset or an external database? If the later you may have to specify which as there are some gotcha's depending.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 15:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-two-columns-in-the-same-table/m-p/272759#M58386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-24T15:11:54Z</dc:date>
    </item>
  </channel>
</rss>

