<?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: Bring records between two dates in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bring-records-between-two-dates/m-p/4551#M1467</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;The simple answer is that you need to use the right method for referencing the date:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;where current_hire_date between "01Sep2006"d and "31Aug2007"d;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;STRONG&gt;d&lt;/STRONG&gt; after the date is called a date constant. You can look up how the date constant, the datetime constant and other constants work in the SAS online documentation or help files. &lt;BR /&gt;&lt;BR /&gt;The above code makes the assumption that CURRENT_HIRE_DATE contains a DATE value (number of days since Jan 1, 1960) and NOT a DATE/TIME value. For more help with these concepts or for quick resolution of your code issues, you might consider contacting Tech Support.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 15:30:23 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-12-18T15:30:23Z</dc:date>
    <item>
      <title>Bring records between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bring-records-between-two-dates/m-p/4550#M1466</link>
      <description>I would like to retrieve records in Proc sql , employees hired between two dates. How can I enter two dates in where clause in proc sql? &lt;BR /&gt;
I get error  if I use the follwing statement&lt;BR /&gt;
WHERE CURRENT_HIRE_DATE GE 01Sep2006 AND&lt;BR /&gt;
		CURRENT_HIRE_DATE LE 31Aug2007.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please give your suggestions&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Vanitha</description>
      <pubDate>Wed, 05 Sep 2007 14:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bring-records-between-two-dates/m-p/4550#M1466</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-05T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bring records between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bring-records-between-two-dates/m-p/4551#M1467</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;The simple answer is that you need to use the right method for referencing the date:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;where current_hire_date between "01Sep2006"d and "31Aug2007"d;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;The &lt;STRONG&gt;d&lt;/STRONG&gt; after the date is called a date constant. You can look up how the date constant, the datetime constant and other constants work in the SAS online documentation or help files. &lt;BR /&gt;&lt;BR /&gt;The above code makes the assumption that CURRENT_HIRE_DATE contains a DATE value (number of days since Jan 1, 1960) and NOT a DATE/TIME value. For more help with these concepts or for quick resolution of your code issues, you might consider contacting Tech Support.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 15:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bring-records-between-two-dates/m-p/4551#M1467</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-12-18T15:30:23Z</dc:date>
    </item>
  </channel>
</rss>

