<?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: question re: dates - moving DOB to current year in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73575#M21329</link>
    <description>INTNX will advance a date in that way.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
1269  data _null_;&lt;BR /&gt;
1270  /*   3/15/02*/&lt;BR /&gt;
1271     dob = '15mar2002'd;&lt;BR /&gt;
1272     dob07 = intnx('year',dob,5,'sameday');&lt;BR /&gt;
1273     put (_all_)(=date9.);&lt;BR /&gt;
1274     run;&lt;BR /&gt;
dob=15MAR2002 dob07=15MAR2007&lt;BR /&gt;
[/pre]</description>
    <pubDate>Wed, 11 Feb 2009 00:08:30 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-02-11T00:08:30Z</dc:date>
    <item>
      <title>question re: dates - moving DOB to current year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73574#M21328</link>
      <description>I have a date of birth (DOB) variable (for example: 3/15/02) and need a second variable with the same birth date, but with 2007 as the year (result = 3/15/07).&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions on how to make this happen?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 10 Feb 2009 22:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73574#M21328</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-10T22:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: question re: dates - moving DOB to current year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73575#M21329</link>
      <description>INTNX will advance a date in that way.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
1269  data _null_;&lt;BR /&gt;
1270  /*   3/15/02*/&lt;BR /&gt;
1271     dob = '15mar2002'd;&lt;BR /&gt;
1272     dob07 = intnx('year',dob,5,'sameday');&lt;BR /&gt;
1273     put (_all_)(=date9.);&lt;BR /&gt;
1274     run;&lt;BR /&gt;
dob=15MAR2002 dob07=15MAR2007&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 11 Feb 2009 00:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73575#M21329</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-02-11T00:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: question re: dates - moving DOB to current year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73576#M21330</link>
      <description>Current year?  Maybe this is better.  You don't need INTNX/INTCK except for leap day babies.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
1301  data _null_;&lt;BR /&gt;
1302  /*   3/15/02*/&lt;BR /&gt;
1303     do dob='15mar2002'd,'20MAY1988'd,'29feb2008'd;&lt;BR /&gt;
1304        dobC = intnx('year',dob,intck('year',dob,today()),'sameday');&lt;BR /&gt;
1305        put (_all_)(=date9.);&lt;BR /&gt;
1306        end;&lt;BR /&gt;
1307     run;&lt;BR /&gt;
&lt;BR /&gt;
dob=15MAR2002 dobC=15MAR2009&lt;BR /&gt;
dob=20MAY1988 dobC=20MAY2009&lt;BR /&gt;
dob=29FEB2008 dobC=28FEB2009&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 11 Feb 2009 00:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-re-dates-moving-DOB-to-current-year/m-p/73576#M21330</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-02-11T00:30:33Z</dc:date>
    </item>
  </channel>
</rss>

