<?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: today() function between two dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574193#M162200</link>
    <description>&lt;P&gt;Did it not work?&amp;nbsp; If so how? Did you get an error?&amp;nbsp; Not get the expected results?&amp;nbsp; Show example data that you though met the WHERE condition and didn't get selected (or the reverse).&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 14:26:13 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-17T14:26:13Z</dc:date>
    <item>
      <title>today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574185#M162197</link>
      <description>&lt;P&gt;Hi I am trying to bring back data between two dates using the today() function. I don't think I can do this in Data step but is there an equivalent that I can use. See code that I have created below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.tempA;
keep Name_Id Address_Id;
set work.tempb;
WHERE is_current_flg = 1 AND record_deleted_flg = 0
AND today()between Valid_From_Dt and Valid_To_Dt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574185#M162197</guid>
      <dc:creator>zdassu</dc:creator>
      <dc:date>2019-07-17T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574191#M162199</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.tempA;
keep Name_Id Address_Id;
set work.tempb;
WHERE is_current_flg = 1 AND record_deleted_flg = 0
AND Valid_From_Dt le today() le Valid_To_Dt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574191#M162199</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-17T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574193#M162200</link>
      <description>&lt;P&gt;Did it not work?&amp;nbsp; If so how? Did you get an error?&amp;nbsp; Not get the expected results?&amp;nbsp; Show example data that you though met the WHERE condition and didn't get selected (or the reverse).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574193#M162200</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-17T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574195#M162201</link>
      <description>&lt;P&gt;Hi I tried that code but it does not bring back any records at all, the results table is blank&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574195#M162201</guid>
      <dc:creator>zdassu</dc:creator>
      <dc:date>2019-07-17T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574196#M162202</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;Are valid_from_dt and valid_to_dt SAS date values (numeric, with a date format attached)? If yes, run a proc freq on those columns to see which values they contain.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574196#M162202</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-17T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574197#M162203</link>
      <description>&lt;P&gt;Can you find an example that you think it should have found?&lt;/P&gt;
&lt;P&gt;Please show the example data that fails to get selected but that you think it should select.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that the variables in your dataset are DATES (not strings, not datetime values, not numbers that humans might mistake for dates).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574197#M162203</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-17T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: today() function between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574209#M162207</link>
      <description>TODAY() returns today's date, of July 17. Are you sure that's what you want to be doing?</description>
      <pubDate>Wed, 17 Jul 2019 15:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/today-function-between-two-dates/m-p/574209#M162207</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T15:20:39Z</dc:date>
    </item>
  </channel>
</rss>

