<?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 Calculating birth year by subtracting age from date. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-birth-year-by-subtracting-age-from-date/m-p/859774#M339656</link>
    <description>&lt;P&gt;Hi - I am looking for some help on how to calculate birth year given the below data and assuming the data was run on June 1, 2022:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee&lt;/TD&gt;&lt;TD&gt;YOE&lt;/TD&gt;&lt;TD&gt;Age&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;22.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;25.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a sample set of data as the actual data file is much larger. My goal is to determine which year the employees were born if the data file was ran on June 1, 2022. I originally just subtracted the 'Age' column from '2022' with the int() function but realized that doesn't take into account the report being run in June. Can anyone help point me in the right direction?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 20:42:59 GMT</pubDate>
    <dc:creator>hovicke</dc:creator>
    <dc:date>2023-02-20T20:42:59Z</dc:date>
    <item>
      <title>Calculating birth year by subtracting age from date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-birth-year-by-subtracting-age-from-date/m-p/859774#M339656</link>
      <description>&lt;P&gt;Hi - I am looking for some help on how to calculate birth year given the below data and assuming the data was run on June 1, 2022:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee&lt;/TD&gt;&lt;TD&gt;YOE&lt;/TD&gt;&lt;TD&gt;Age&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;22.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;25.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a sample set of data as the actual data file is much larger. My goal is to determine which year the employees were born if the data file was ran on June 1, 2022. I originally just subtracted the 'Age' column from '2022' with the int() function but realized that doesn't take into account the report being run in June. Can anyone help point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 20:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-birth-year-by-subtracting-age-from-date/m-p/859774#M339656</guid>
      <dc:creator>hovicke</dc:creator>
      <dc:date>2023-02-20T20:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating birth year by subtracting age from date.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-birth-year-by-subtracting-age-from-date/m-p/859777#M339658</link>
      <description>&lt;P&gt;June is 6/12 = 0.5 years&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So subtract the age from 2022.5&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 20:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-birth-year-by-subtracting-age-from-date/m-p/859777#M339658</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-20T20:55:16Z</dc:date>
    </item>
  </channel>
</rss>

