<?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: To_date between to Dates in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/329032#M21870</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried the your solution&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, but the following error message appears:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to change the date format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your willigness to help,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 10:51:24 GMT</pubDate>
    <dc:creator>mfaqueiroz</dc:creator>
    <dc:date>2017-02-01T10:51:24Z</dc:date>
    <item>
      <title>To_date between to Dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328827#M21856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to filter my table (Tab1) by the&amp;nbsp;time gap between 2016-01-01 and 2016-01-31, so I wrote the follow code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Tab1.FirstDate BETWEEN  To_Date(20160101,'YYYYMMDD') AND To_Date(20160131,'YYYYMMDD')

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But SAS does not recognize the To_Date function. Do you have any alternative suggestion?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328827#M21856</guid>
      <dc:creator>mfaqueiroz</dc:creator>
      <dc:date>2017-01-31T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: To_date between to Dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328832#M21857</link>
      <description>&lt;P&gt;Date literals in SAS are specified as "ddmmmyyyy"d.&lt;/P&gt;
&lt;P&gt;In your case, you'd use "01jan2016"d and "31jan2016"d, respectively. No functions needed. You can also use single quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328832#M21857</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-31T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: To_date between to Dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328881#M21859</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; described how to do it in SAS.&lt;/P&gt;
&lt;P&gt;To_date is a&amp;nbsp;proprietary&amp;nbsp;function to Oracle. SAS adhere to ANSI SQL, with &lt;EM&gt;SAS&lt;/EM&gt; language add-ons.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/328881#M21859</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-31T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: To_date between to Dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/329032#M21870</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried the your solution&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, but the following error message appears:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to change the date format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your willigness to help,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 10:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/329032#M21870</guid>
      <dc:creator>mfaqueiroz</dc:creator>
      <dc:date>2017-02-01T10:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: To_date between to Dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/329037#M21872</link>
      <description>&lt;P&gt;Please post the complete log of the step.&lt;/P&gt;
&lt;P&gt;If you used the date literals exactly as I suggested, then your supposed date variable is not a date variable, but of type character.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 11:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/To-date-between-to-Dates/m-p/329037#M21872</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-01T11:00:30Z</dc:date>
    </item>
  </channel>
</rss>

