<?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: Error while calculation of age in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800507#M314933</link>
    <description>&lt;P&gt;Note that to calculate age, this is arguable a better method:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;AGE = floor(yrdif(DOB, today(), 'age'));&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Mar 2022 21:37:27 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2022-03-06T21:37:27Z</dc:date>
    <item>
      <title>Error while calculation of age</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800316#M314790</link>
      <description>&lt;P&gt;Kindly check below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data PKMERGE;
set PKDAR;
/*Derivation of age*/
age=intck('year',VSN1D, DOB1D, 'Continuous'); /*Check the age*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After running the above code, following log is appearing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Character values have been converted to numeric
      values at the places given by: (Line):(Column).
      732:18   732:25
NOTE: Invalid numeric data, VSN1D='18APR2006' , at line 732
      column 18.
NOTE: Invalid numeric data, DOB1D='08JUL1955' , at line 732
      column 25.&lt;/PRE&gt;&lt;P&gt;Kindly assist in solving the problem&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 09:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800316#M314790</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-05T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error while calculation of age</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800505#M314932</link>
      <description>&lt;P&gt;The message is quite clear.&lt;/P&gt;
&lt;P&gt;Function INTK take numerical arguments (SAS dates) and you provide character arguments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How was table PDKAR created?&lt;/P&gt;
&lt;P&gt;Maybe you wrote&lt;/P&gt;
&lt;PRE&gt;VSN1D='18APR2006';&lt;/PRE&gt;
&lt;P&gt;instead of&lt;/P&gt;
&lt;PRE&gt;VSN1D='18APR2006'd;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 21:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800505#M314932</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-06T21:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while calculation of age</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800507#M314933</link>
      <description>&lt;P&gt;Note that to calculate age, this is arguable a better method:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;AGE = floor(yrdif(DOB, today(), 'age'));&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 21:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-calculation-of-age/m-p/800507#M314933</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-06T21:37:27Z</dc:date>
    </item>
  </channel>
</rss>

