<?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 How to select birthdate &amp;lt; 5? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627371#M185188</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to select the people less than 5 days in the 'Birthdate' column?&amp;nbsp; For example, 02/25/2020 &amp;lt;= 5 days.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 01:41:26 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-02-26T01:41:26Z</dc:date>
    <item>
      <title>How to select birthdate &lt; 5?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627371#M185188</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to select the people less than 5 days in the 'Birthdate' column?&amp;nbsp; For example, 02/25/2020 &amp;lt;= 5 days.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 01:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627371#M185188</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-26T01:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to select birthdate &lt; 5?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627373#M185190</link>
      <description>&lt;P&gt;Please always provide some sample data in the form of a SAS datastep.&lt;/P&gt;
&lt;P&gt;Below should give you the idea.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input birthdate :date9.;
  format birthdate date9.;
  datalines;
01feb2000
20feb2001
27feb2002
05mar2003
;

data want;
  set have;
  _yearShift=intck('year',birthdate,today());
  _birthdate=intnx('year',birthdate,_yearShift,'s');
  format _birthdate date9.;
  diff=today()-_birthdate;
/*  if abs(diff)&amp;lt;=5 then output;*/
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 01:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627373#M185190</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-26T01:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to select birthdate &lt; 5?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627377#M185194</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 02:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-birthdate-lt-5/m-p/627377#M185194</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-26T02:16:27Z</dc:date>
    </item>
  </channel>
</rss>

