<?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: how do i convert date of birth to age in enterprise guide? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4819#M1550</link>
    <description>This sample shows how to compute age in years.  &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/samples/index.jsp?sid=271" target="_blank"&gt;http://support.sas.com/ctx/samples/index.jsp?sid=271&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It computes it as someone might say his or her age in the USA.  The yrdif provides a decimal number, with a fractional part.&lt;BR /&gt;
&lt;BR /&gt;
Both methods have their place, it depends on your needs.</description>
    <pubDate>Thu, 27 Sep 2007 20:22:46 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2007-09-27T20:22:46Z</dc:date>
    <item>
      <title>how do i convert date of birth to age in enterprise guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4817#M1548</link>
      <description>i am new to enterprise guide 4 . I have a column for date of birth  e.g. 09251962. I would like to calculate current age.&lt;BR /&gt;
&lt;BR /&gt;
Thanks

Message was edited by: rj</description>
      <pubDate>Wed, 26 Sep 2007 15:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4817#M1548</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-26T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: how do i convert date of birth to age in enterprise guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4818#M1549</link>
      <description>Hi:&lt;BR /&gt;
  First, you need to know what form your date column is -- is it a character value, is it a SAS date value or is it a date/time value???&lt;BR /&gt;
&lt;BR /&gt;
  Next, you have to decide what constitutes current age? Is it the age as of today? as of Jan 1, 2007, as of the beginning of the month?&lt;BR /&gt;
&lt;BR /&gt;
  And, do you want the age to be in "whole" years (35) or would you want to see "fractions" of a year (35.62) .&lt;BR /&gt;
&lt;BR /&gt;
  There are several ways to generate the current age -- the arithmetic way and the function way. If you want to use the current day or today's date to calculate age, then there is a SAS function that turns today's date into a SAS date value. That function is the TODAY function. Then the YRDIF function will give you the number of years between two dates (and the DATDIF function will give you the number of days between two dates).&lt;BR /&gt;
&lt;BR /&gt;
The other piece of information that will affect the answer is how and where in EG you need to get the age. Do you need it in a table? Do you need it on a report -- and not saved permanently?&lt;BR /&gt;
 &lt;BR /&gt;
Your best bet for help might be to contact Tech Support for specific help with EG and calculating age, depending on the answers to all the above questions. To find out how to contact Tech Support, refer to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 26 Sep 2007 17:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4818#M1549</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-26T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: how do i convert date of birth to age in enterprise guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4819#M1550</link>
      <description>This sample shows how to compute age in years.  &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/samples/index.jsp?sid=271" target="_blank"&gt;http://support.sas.com/ctx/samples/index.jsp?sid=271&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It computes it as someone might say his or her age in the USA.  The yrdif provides a decimal number, with a fractional part.&lt;BR /&gt;
&lt;BR /&gt;
Both methods have their place, it depends on your needs.</description>
      <pubDate>Thu, 27 Sep 2007 20:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4819#M1550</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2007-09-27T20:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do i convert date of birth to age in enterprise guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4820#M1551</link>
      <description>I am actually tryign to use Enterprise Guide 4 to do this. I am a new user of SAS Enterprise Guide 4. I have a column of birth dates and would like to know the ages of people this year. &lt;BR /&gt;
&lt;BR /&gt;
I know i have to use the Filter adn Query tool. I do not know how to proceed from there.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and really appreciate the help&lt;BR /&gt;
&lt;BR /&gt;
Rumana</description>
      <pubDate>Mon, 15 Oct 2007 18:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4820#M1551</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-15T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: how do i convert date of birth to age in enterprise guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4821#M1552</link>
      <description>Your best bet for help might be to contact Tech Support for specific help with EG and how to do this in Filter and Query. EG is a visual interface to SAS. It is building code behind the scenes. Many people on the Forum can send you the code to calculate age. If you need help doing it in a point and click manner in EG, then consulting an EG book, taking an EG class or contacting Tech Support, will be of the most help to you:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 15 Oct 2007 18:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-do-i-convert-date-of-birth-to-age-in-enterprise-guide/m-p/4821#M1552</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-15T18:38:38Z</dc:date>
    </item>
  </channel>
</rss>

