<?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 Date in the where clause doesn't return any rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861279#M340220</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a date column whose date type is numeric, it is as:&amp;nbsp;7/20/2020&lt;/P&gt;
&lt;P&gt;I want to place this date in a where clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Where date = '20Jul2020'd;&lt;/P&gt;
&lt;P&gt;This doesn't bring any rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the reason?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 04:50:57 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2023-02-28T04:50:57Z</dc:date>
    <item>
      <title>Date in the where clause doesn't return any rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861279#M340220</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a date column whose date type is numeric, it is as:&amp;nbsp;7/20/2020&lt;/P&gt;
&lt;P&gt;I want to place this date in a where clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Where date = '20Jul2020'd;&lt;/P&gt;
&lt;P&gt;This doesn't bring any rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the reason?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 04:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861279#M340220</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-02-28T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date in the where clause doesn't return any rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861280#M340221</link>
      <description>&lt;P&gt;Please post the complete log of the step.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 05:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861280#M340221</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-28T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date in the where clause doesn't return any rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861354#M340255</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s request, please provide examples of typical values of the variable DATE that you are working with, and the FORMAT of the variable DATE.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 12:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861354#M340255</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-28T12:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date in the where clause doesn't return any rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861469#M340295</link>
      <description>&lt;P&gt;If this data was imported from Excel, you might have "hidden" time information in it, because Excel stores times as fractions of a day, not counts as seconds.&lt;/P&gt;
&lt;P&gt;As illustration run this short code and look at the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
format date mmddyy10.;
date = '20Jul2020'd;
put "date as is " date;
if date = '20Jul2020'd then put "yes";
date = date + .1;
put "date after addition " date;
if date = '20Jul2020'd then put "yes"; else put "no";
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-in-the-where-clause-doesn-t-return-any-rows/m-p/861469#M340295</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-28T16:02:18Z</dc:date>
    </item>
  </channel>
</rss>

