<?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 do i find DOB with start date and age? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413154#M67445</link>
    <description>&lt;P&gt;Need assistance finding DOB with a start date and age. Also has to include a do loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Age is 40.&lt;/P&gt;
&lt;P&gt;Start date is February 15, 2001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script so far:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data birth;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Age = 40;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Start = '15Feb2001'd;&lt;/P&gt;
&lt;P&gt;Bday=Start-Age;&lt;/P&gt;
&lt;P&gt;do Age = 1 to 90 until (Start lt '15Feb2001'd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=birth;&lt;/P&gt;
&lt;P&gt;format Start Bday mmddyy10.;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 14:19:18 GMT</pubDate>
    <dc:creator>asobs</dc:creator>
    <dc:date>2017-11-14T14:19:18Z</dc:date>
    <item>
      <title>How do i find DOB with start date and age?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413154#M67445</link>
      <description>&lt;P&gt;Need assistance finding DOB with a start date and age. Also has to include a do loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Age is 40.&lt;/P&gt;
&lt;P&gt;Start date is February 15, 2001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script so far:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data birth;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Age = 40;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Start = '15Feb2001'd;&lt;/P&gt;
&lt;P&gt;Bday=Start-Age;&lt;/P&gt;
&lt;P&gt;do Age = 1 to 90 until (Start lt '15Feb2001'd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=birth;&lt;/P&gt;
&lt;P&gt;format Start Bday mmddyy10.;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 14:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413154#M67445</guid>
      <dc:creator>asobs</dc:creator>
      <dc:date>2017-11-14T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find DOB with start date and age?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413157#M67447</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177418"&gt;@asobs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Need assistance finding DOB with a start date and age. Also has to include a do loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Age is 40.&lt;/P&gt;
&lt;P&gt;Start date is February 15, 2001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script so far:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data birth;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Age = 40;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Start = '15Feb2001'd;&lt;/P&gt;
&lt;P&gt;Bday=Start-Age;&lt;/P&gt;
&lt;P&gt;do Age = 1 to 90 until (Start lt '15Feb2001'd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=birth;&lt;/P&gt;
&lt;P&gt;format Start Bday mmddyy10.;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;DOB doesn't change over time...why do you think&amp;nbsp;you need a do loop for that?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413157#M67447</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T02:03:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413160#M67448</link>
      <description>&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413160#M67448</guid>
      <dc:creator>asobs</dc:creator>
      <dc:date>2017-11-14T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find DOB with start date and age?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413162#M67449</link>
      <description>&lt;P&gt;Well...the question as posed doesn't make sense so I'm not sure how we can help you here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413162#M67449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T02:09:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413164#M67450</link>
      <description />
      <pubDate>Tue, 14 Nov 2017 02:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413164#M67450</guid>
      <dc:creator>asobs</dc:creator>
      <dc:date>2017-11-14T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find DOB with start date and age?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413168#M67451</link>
      <description>&lt;P&gt;You can tell the year and the month, sort of, but you cannot determine the exact date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the solution still doesn't need arrays or loops so, in context of how you originally framed the question, it still doesn't add clarification.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the answer to this question, use INTNX to move the date back by the age.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look at the fourth parameter for some alignment options, but really the birthdate can be anything in the range of a year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dob = intnx('year', date, -40, 'b');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413168#M67451</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T02:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413180#M67453</link>
      <description>&lt;P&gt;Thank you for reminding me why I should never bother with stupid and homework&amp;nbsp;questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 03:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-i-find-DOB-with-start-date-and-age/m-p/413180#M67453</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T03:27:54Z</dc:date>
    </item>
  </channel>
</rss>

