<?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 customer age question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52512#M14447</link>
    <description>Hello, I have a simple question regarding determining a customers age based on their birth date. In my records the birthdate is included in the ddmmmyyyy format. I would like to determine their age as a new variable in the table. Do I have to reformat it and check it against SAS's internal calender to determine this? How would I go about doing this? thanks for any help anyone can provide.</description>
    <pubDate>Tue, 07 Oct 2008 17:53:15 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-07T17:53:15Z</dc:date>
    <item>
      <title>customer age question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52512#M14447</link>
      <description>Hello, I have a simple question regarding determining a customers age based on their birth date. In my records the birthdate is included in the ddmmmyyyy format. I would like to determine their age as a new variable in the table. Do I have to reformat it and check it against SAS's internal calender to determine this? How would I go about doing this? thanks for any help anyone can provide.</description>
      <pubDate>Tue, 07 Oct 2008 17:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52512#M14447</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-07T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: customer age question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52513#M14448</link>
      <description>The answer is: "it depends".  If you birthdate variable is a character-type, you will need to convert it to a SAS numeric DATE variable using the INPUT function and the appropriate SAS DATE INFORMAT.  However, if a SAS PROC CONTENTS on your SAS database file indicates that this variable is SAS NUMERIC and is using some SAS format to display (externally) the formatted value, then you can use SAS functions, such as INTCK, to determine age.&lt;BR /&gt;
&lt;BR /&gt;
Have a look at the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and the SAS Base documentation in the SAS Language guide.  Also, at the support site (using the SEARCH option), there are technical papers (SUGI, SGF - user group conference proceedings) which explore this topic in great detail.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks,Inc.</description>
      <pubDate>Tue, 07 Oct 2008 18:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52513#M14448</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-07T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: customer age question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52514#M14449</link>
      <description>data test;&lt;BR /&gt;
birth_txt = '20oct2000';&lt;BR /&gt;
birth_sd  = input(birth_txt,date9.); put birth_sd= date.;&lt;BR /&gt;
age = intck('year',birth_sd,today()); put age=;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 20 Oct 2008 12:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52514#M14449</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2008-10-20T12:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: customer age question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52515#M14450</link>
      <description>INTCK will not produce age as you and I think of it, as it only counts whole calendar years and not duration between the birthday and some date.  Once you have your dates into date format, use this technique&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/808.html" target="_blank"&gt;http://support.sas.com/kb/24/808.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Mon, 20 Oct 2008 16:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52515#M14450</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-10-20T16:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: customer age question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52516#M14451</link>
      <description>Tx, for the link - Your right.</description>
      <pubDate>Tue, 21 Oct 2008 09:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/customer-age-question/m-p/52516#M14451</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2008-10-21T09:24:32Z</dc:date>
    </item>
  </channel>
</rss>

