<?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: comparing date formats in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307186#M20777</link>
    <description>&lt;P&gt;Thanks for the help, that worked great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I start doing more programming, I'm sure I'll be posting out here quite a bit with questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Chris N.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 17:32:53 GMT</pubDate>
    <dc:creator>cnilsen</dc:creator>
    <dc:date>2016-10-25T17:32:53Z</dc:date>
    <item>
      <title>comparing date formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307178#M20775</link>
      <description>&lt;P&gt;HI..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a limited knowledge of SAS. I am an &amp;nbsp;AS400 developer who recently jumped to this platform when my company offered me the opportunity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using EG (7.1) and trying to do a left join on 2 tables using a date field.&lt;/P&gt;&lt;P&gt;Table1 has a format of &amp;nbsp;20OCT2016:00:00:00&lt;/P&gt;&lt;P&gt;Table2 has a format of 20OCT2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG wants me to a manual join.. since there is no natural matching columns between the two tables.&lt;/P&gt;&lt;P&gt;I can connect the 2 date columns together and run it without errors, but my results show as NULL values. so the match didnt work&lt;/P&gt;&lt;P&gt;Can I extract(substring) the date only from table1 and do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307178#M20775</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2016-10-25T16:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: comparing date formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307182#M20776</link>
      <description>&lt;P&gt;Most likely, what you are seeing are formatted versions of the data values (not the actual values).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's the case, the issue is that one table contains a date-time combination but the other is just the date.&amp;nbsp; Try matching this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;datepart(table1.fieldname) = table2.fieldname&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's the most likely way to resolve this, but sometimes it takes inspecting the data more closely.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307182#M20776</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-25T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: comparing date formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307186#M20777</link>
      <description>&lt;P&gt;Thanks for the help, that worked great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I start doing more programming, I'm sure I'll be posting out here quite a bit with questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Chris N.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 17:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/comparing-date-formats/m-p/307186#M20777</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2016-10-25T17:32:53Z</dc:date>
    </item>
  </channel>
</rss>

