<?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: how to compare date with current date? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343501#M272927</link>
    <description>&lt;P&gt;Your code appears like your stop_date is a character field. If so, then the following should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
  input date_stop $;
  if input(Date_Stop,yymmdd8.) &amp;lt; today() then do;
    errordes5='Invalid Date_Stop';
  end ;
  cards;
20151012
20170322
20170323
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 20:35:17 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-03-22T20:35:17Z</dc:date>
    <item>
      <title>how to compare date with current date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343496#M272925</link>
      <description>&lt;P&gt;if input(Date_Stop,yymmdd8.) &amp;lt; %sysfunc(today(),yymmddn8.) then do;errordes5='Invalid Date_Stop'; end ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to compare date with current date? above statements don't work, please help, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343496#M272925</guid>
      <dc:creator>bulewind</dc:creator>
      <dc:date>2017-03-22T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare date with current date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343499#M272926</link>
      <description>&lt;P&gt;Please take a minute to format your code. The followin gis the correct comparison, assuming your date variable is a character and formatted as yymmdd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(Date_Stop,yymmdd8.) &amp;lt; today() &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343499#M272926</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-22T20:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare date with current date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343501#M272927</link>
      <description>&lt;P&gt;Your code appears like your stop_date is a character field. If so, then the following should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
  input date_stop $;
  if input(Date_Stop,yymmdd8.) &amp;lt; today() then do;
    errordes5='Invalid Date_Stop';
  end ;
  cards;
20151012
20170322
20170323
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343501#M272927</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-22T20:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare date with current date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343978#M272928</link>
      <description>&lt;P&gt;Please provide more details on the requirement like what exactly you are trying to achieve. If date is compared with current date then what you want to achieve.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-compare-date-with-current-date/m-p/343978#M272928</guid>
      <dc:creator>1239</dc:creator>
      <dc:date>2017-03-24T08:00:17Z</dc:date>
    </item>
  </channel>
</rss>

