<?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: Round age in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953652#M42870</link>
    <description>Use the YRDIF function with its default basis of AGE.&lt;BR /&gt;Age is not rounded up for the uses I know. You may have different business rules, though, but only you can know them.</description>
    <pubDate>Mon, 16 Dec 2024 11:17:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-12-16T11:17:05Z</dc:date>
    <item>
      <title>Round age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953648#M42868</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;suppose to have two dates:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date of Birth:&amp;nbsp;01JUL1936&lt;/P&gt;
&lt;P&gt;Date of Admission:&amp;nbsp;03MAR2016&lt;/P&gt;
&lt;P&gt;The age at admission calculated as: (Date of Admission-Date of Birth)/365.25 = 79.67.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I need an integer, should this age be rounded to 80 or not? If yes, how?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 10:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953648#M42868</guid>
      <dc:creator>NewUsrStat</dc:creator>
      <dc:date>2024-12-16T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Round age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953649#M42869</link>
      <description>&lt;P&gt;Should it be rounded? Well, that's up to you, it depends on how you intend to use the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to round it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;age_rounded = round(yrdif(date_of_birth,date_of_admission,'AGE'));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Dec 2024 10:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953649#M42869</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-16T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Round age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953652#M42870</link>
      <description>Use the YRDIF function with its default basis of AGE.&lt;BR /&gt;Age is not rounded up for the uses I know. You may have different business rules, though, but only you can know them.</description>
      <pubDate>Mon, 16 Dec 2024 11:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953652#M42870</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-12-16T11:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Round age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953655#M42871</link>
      <description>&lt;P&gt;Good point,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;about not rounding up&lt;/P&gt;
&lt;P&gt;To round down, you would use the &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/p1xuvvu3to43jmn187gqlmpk3hi7.htm" target="_self"&gt;FLOOR function&lt;/A&gt; in SAS&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 11:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Round-age/m-p/953655#M42871</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-16T11:48:19Z</dc:date>
    </item>
  </channel>
</rss>

