<?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: SAS Date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858688#M339276</link>
    <description>&lt;P&gt;See&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lepg/p1ugvn0mocff92n13mw9s56300jv.htm#n10bbl1njzm9nrn1peo15mqcu551" target="_blank" rel="noopener"&gt;Date, Time, and Datetime Constants&lt;/A&gt;&amp;nbsp;for the correct format of date constants (literals).&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 10:46:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-02-14T10:46:03Z</dc:date>
    <item>
      <title>SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858686#M339274</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variables A and B in date formats (mmyyn6.). Now&amp;nbsp; in a datastep I have a code that looks like this:&lt;/P&gt;
&lt;P&gt;I know this is not correct but can any one help&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have
if A &amp;gt;= 'Nov2000'd and B&amp;lt;= 'Dec2010'd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 10:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858686#M339274</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2023-02-14T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858688#M339276</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lepg/p1ugvn0mocff92n13mw9s56300jv.htm#n10bbl1njzm9nrn1peo15mqcu551" target="_blank" rel="noopener"&gt;Date, Time, and Datetime Constants&lt;/A&gt;&amp;nbsp;for the correct format of date constants (literals).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 10:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858688#M339276</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-14T10:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858689#M339277</link>
      <description>&lt;P&gt;Dates must be represented in the following form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'01JAN2022'd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and not any other form (except that lower case letters are allowed). So, inside the quotes, the day of the month (2 digits) comes first, followed by three letter month, followed by four digit year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you may want this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have
    if a &amp;gt;= '01Nov2000'd and b &amp;lt;= '31Dec2010'd;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 10:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date/m-p/858689#M339277</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-14T10:48:02Z</dc:date>
    </item>
  </channel>
</rss>

