<?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: DOB in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678296#M204701</link>
    <description>&lt;P&gt;The previous posts all raise valid points.&amp;nbsp; Let's take a look at your code a bit more closely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You move back 365 * 30 days.&amp;nbsp; That's only approximately correct.&amp;nbsp; A block of 30 years will contain approximately 7 leap years, where that year contains 366 days.&amp;nbsp; So a more accurate attempt would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOB = intnx('year', today(), -30, 'same');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That moves back to the same day of the year as the current date, 30 years ago.&amp;nbsp; And as was pointed out, there will be many valid dates that fit the bill.&amp;nbsp; This calculation gives you one of those valid dates.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 01:17:38 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2020-08-21T01:17:38Z</dc:date>
    <item>
      <title>DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678196#M204671</link>
      <description>Write a program to calculate your date of birth if your age is 30.</description>
      <pubDate>Thu, 20 Aug 2020 18:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678196#M204671</guid>
      <dc:creator>helpmedoubts</dc:creator>
      <dc:date>2020-08-20T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678201#M204673</link>
      <description>&lt;P&gt;What have you tried so far? Please post your code.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 18:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678201#M204673</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-20T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678207#M204674</link>
      <description>Data want;&lt;BR /&gt;DOB=today()-365*30;&lt;BR /&gt;Format dob date9.;&lt;BR /&gt;Run;</description>
      <pubDate>Thu, 20 Aug 2020 18:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678207#M204674</guid>
      <dc:creator>helpmedoubts</dc:creator>
      <dc:date>2020-08-20T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678210#M204676</link>
      <description>&lt;P&gt;Looks good to me. Have a look at the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INTNX&lt;/A&gt;&amp;nbsp;function for an alternative.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 18:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678210#M204676</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-20T18:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678257#M204689</link>
      <description>You cannot get an exact date of birth. You know the date of birth is within 364 days of the 30 years from today but not the exact date. &lt;BR /&gt;You would need more specific information to answer this correctly.</description>
      <pubDate>Thu, 20 Aug 2020 20:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678257#M204689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-20T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678296#M204701</link>
      <description>&lt;P&gt;The previous posts all raise valid points.&amp;nbsp; Let's take a look at your code a bit more closely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You move back 365 * 30 days.&amp;nbsp; That's only approximately correct.&amp;nbsp; A block of 30 years will contain approximately 7 leap years, where that year contains 366 days.&amp;nbsp; So a more accurate attempt would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOB = intnx('year', today(), -30, 'same');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That moves back to the same day of the year as the current date, 30 years ago.&amp;nbsp; And as was pointed out, there will be many valid dates that fit the bill.&amp;nbsp; This calculation gives you one of those valid dates.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 01:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678296#M204701</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-08-21T01:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: DOB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678805#M204940</link>
      <description>&lt;P&gt;Thanks a lot for explaining it so well. The code worked perfectly.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 03:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DOB/m-p/678805#M204940</guid>
      <dc:creator>helpmedoubts</dc:creator>
      <dc:date>2020-08-24T03:26:44Z</dc:date>
    </item>
  </channel>
</rss>

