<?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: Age - Using Date of Birth and Today() in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183770#M265400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just point out with the above solution that it may not work on all events.&amp;nbsp; The documentation from SAS on the YRDIF function indicates to use the 'AGE' parameter rather than actual:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I prefer to stick with an old tried and tested formula:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.iu.edu/d/aczw" title="https://kb.iu.edu/d/aczw"&gt;https://kb.iu.edu/d/aczw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either can be used replacing the text before as Age.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 11:02:21 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-09-03T11:02:21Z</dc:date>
    <item>
      <title>Age - Using Date of Birth and Today()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183767#M265397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to calculate a persons age in proc sql using date of birth and todays function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 09:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183767#M265397</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-09-03T09:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Age - Using Date of Birth and Today()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183768#M265398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that yrdif statement could be helpful. For example :&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select employee_id, employee_name,&amp;nbsp; int(yrdif(emp_Hire_date,today(),"ACTUAL"))&amp;nbsp; as tenure,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Salary,int(yrdif(Birth_date,today(),'ACTUAL')) as Age &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arturo.salesstaff order by tenure desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Damian Panek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 10:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183768#M265398</guid>
      <dc:creator>DamianPanek</dc:creator>
      <dc:date>2014-09-03T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Age - Using Date of Birth and Today()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183769#M265399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Damian that worked much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 10:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183769#M265399</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-09-03T10:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Age - Using Date of Birth and Today()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183770#M265400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just point out with the above solution that it may not work on all events.&amp;nbsp; The documentation from SAS on the YRDIF function indicates to use the 'AGE' parameter rather than actual:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I prefer to stick with an old tried and tested formula:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.iu.edu/d/aczw" title="https://kb.iu.edu/d/aczw"&gt;https://kb.iu.edu/d/aczw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either can be used replacing the text before as Age.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 11:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-Using-Date-of-Birth-and-Today/m-p/183770#M265400</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-03T11:02:21Z</dc:date>
    </item>
  </channel>
</rss>

