<?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 ABOUT DATES in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405079#M98511</link>
    <description>&lt;P&gt;I have a variable called _datadate. The format of this variable is "MMDDYY10." Our data date ranges from 05/01/2015 to 07/31/2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions. First, I need to delete all of the dates before 05/15/2015.&amp;nbsp; I use the following code to attempt this, but it does not work. How will I be able to accomplish this?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IF _datadate GE 05/15/2015 then OUTPUT;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The second question is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get all of the DD values equal to 14 and 15. I want a function that will detect all of 14th and 15th of each month. How can I do this?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 01:54:01 GMT</pubDate>
    <dc:creator>Xinhui</dc:creator>
    <dc:date>2017-10-18T01:54:01Z</dc:date>
    <item>
      <title>ABOUT DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405079#M98511</link>
      <description>&lt;P&gt;I have a variable called _datadate. The format of this variable is "MMDDYY10." Our data date ranges from 05/01/2015 to 07/31/2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions. First, I need to delete all of the dates before 05/15/2015.&amp;nbsp; I use the following code to attempt this, but it does not work. How will I be able to accomplish this?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IF _datadate GE 05/15/2015 then OUTPUT;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The second question is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get all of the DD values equal to 14 and 15. I want a function that will detect all of 14th and 15th of each month. How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405079#M98511</guid>
      <dc:creator>Xinhui</dc:creator>
      <dc:date>2017-10-18T01:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: ABOUT DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405100#M98512</link>
      <description>&lt;P&gt;1.check the list of functions - DAY()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Date liberals are specified as 'ddMONyyyy'd or ‘01Jan2017’d&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this is documented here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 04:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405100#M98512</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-18T04:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABOUT DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405125#M98521</link>
      <description>&lt;P&gt;Avoid coding in uppercase.&lt;/P&gt;
&lt;P&gt;For your example:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  where _datadate ge '15MAY2015'd and day(_datadate) in (14,15);
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 08:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405125#M98521</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-18T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABOUT DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405171#M98535</link>
      <description>&lt;P&gt;Those are the right tools, but the program needs a tweak:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;where _daydate &amp;gt;= '15May2015'd;&lt;/P&gt;
&lt;P&gt;if day(_daydate) in (14, 15) then delete;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 11:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ABOUT-DATES/m-p/405171#M98535</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-10-18T11:34:51Z</dc:date>
    </item>
  </channel>
</rss>

