<?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 Calculate Age from Transaction Date in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213078#M16004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked through all the treads about&amp;nbsp; calculating age&amp;nbsp; and found&amp;nbsp; this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int(YRDIF(t1.DOB, t1.PlayerDayDate, 'Year'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line of code is valid but the column ,AGE, shows missing value or no values. What did I do wrong?&lt;/P&gt;&lt;P&gt;My DOB and PlayerDayDate format are as follow:&lt;/P&gt;&lt;P&gt;22MAR2014:00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 20:29:18 GMT</pubDate>
    <dc:creator>sdang</dc:creator>
    <dc:date>2015-03-30T20:29:18Z</dc:date>
    <item>
      <title>Calculate Age from Transaction Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213078#M16004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked through all the treads about&amp;nbsp; calculating age&amp;nbsp; and found&amp;nbsp; this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int(YRDIF(t1.DOB, t1.PlayerDayDate, 'Year'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line of code is valid but the column ,AGE, shows missing value or no values. What did I do wrong?&lt;/P&gt;&lt;P&gt;My DOB and PlayerDayDate format are as follow:&lt;/P&gt;&lt;P&gt;22MAR2014:00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213078#M16004</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2015-03-30T20:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Age from Transaction Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213079#M16005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variables have to be DATE valued functions, not DATETIME. Use datepart(t1.dob) and datepart(t1.PlayerDayDate).&lt;/P&gt;&lt;P&gt;I think you want "AGE" as the basis or blank, 'YEAR' should have gotten a warning or error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213079#M16005</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-30T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Age from Transaction Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213080#M16006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculate-Age-from-Transaction-Date/m-p/213080#M16006</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2015-03-30T20:56:53Z</dc:date>
    </item>
  </channel>
</rss>

