<?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: AGE in Years and Months in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186445#M47340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the link below, I dont see any such format.&lt;/P&gt;&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm" title="https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm"&gt;Dates, Times, and Intervals : SAS Date, Time, and Datetime Values &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 19:39:25 GMT</pubDate>
    <dc:creator>Hima</dc:creator>
    <dc:date>2014-09-04T19:39:25Z</dc:date>
    <item>
      <title>AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186440#M47335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have data like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAVE:&lt;/P&gt;&lt;P&gt;patid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ageyears&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; agemon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visdate&lt;/P&gt;&lt;P&gt;001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-02-10&lt;/P&gt;&lt;P&gt;003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-01-15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEEDED like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;patid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visdate&lt;/P&gt;&lt;P&gt;001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; P7Y10M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-02-10&lt;/P&gt;&lt;P&gt;003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; P15Y6M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-01-15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Guru's help me with populating age as above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186440#M47335</guid>
      <dc:creator>Almighty</dc:creator>
      <dc:date>2014-09-04T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186441#M47336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want(keep=patid age visdate);&lt;BR /&gt;RETAIN patid age visdate;&lt;BR /&gt;set have;&lt;/P&gt;&lt;P&gt;age=cat('P',ageyears,'Y',agemon,'M');&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7288_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186441#M47336</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-09-04T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186442#M47337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;cat&lt;/STRONG&gt;&lt;/SPAN&gt; is there any other way we can do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186442#M47337</guid>
      <dc:creator>Almighty</dc:creator>
      <dc:date>2014-09-04T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186443#M47338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way that I know,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want(keep=patid age visdate);&lt;/P&gt;&lt;P&gt;RETAIN patid age visdate;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;age='P'||TRIM(LEFT(ageyears))||'Y'||TRIM(LEFT(agemon))||'M';&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 19:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186443#M47338</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-09-04T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186444#M47339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Again Hima.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way using ISO8601 (duration) formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 19:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186444#M47339</guid>
      <dc:creator>Almighty</dc:creator>
      <dc:date>2014-09-04T19:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186445#M47340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the link below, I dont see any such format.&lt;/P&gt;&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm" title="https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm"&gt;Dates, Times, and Intervals : SAS Date, Time, and Datetime Values &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 19:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186445#M47340</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-09-04T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186446#M47341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using intnx interval functions should do the job&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 20:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186446#M47341</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-04T20:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186447#M47342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ISO 8601 formats are available in v9 and are documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But personally I find them rather fiddly and I think Hima's suggestions are good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 04:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186447#M47342</guid>
      <dc:creator>dkb</dc:creator>
      <dc:date>2014-09-05T04:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGE in Years and Months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186448#M47343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As everyone can work with his own calendar and clock there are many possibilities. But wanting to understand each other is needing an agreement that we use some standard.&lt;/P&gt;&lt;P&gt;For clock/time we have gmt hours/seconds being defined. For dates the iso-standards (8601) are becoming getting accepted. The metric system still being difficult for acceptance &lt;A href="http://en.wikipedia.org/wiki/Metric_system" title="http://en.wikipedia.org/wiki/Metric_system"&gt;Metric system - Wikipedia, the free encyclopedia&lt;/A&gt;.&amp;nbsp; We could have done for the French revolutions way &lt;A href="http://en.wikipedia.org/wiki/French_Republican_Calendar" title="http://en.wikipedia.org/wiki/French_Republican_Calendar"&gt;French Republican Calendar - Wikipedia, the free encyclopedia&lt;/A&gt;. Little chance for those now.&amp;nbsp; Date/time calculations are not that easy in a Georgian approach there is a 28-year period. Week-numbers are overlapping in the year-change. &lt;/P&gt;&lt;P&gt;The data/time convention with SAS as a number since the arbitrary point of zero 1 jan 1960 0:0:0 is a good way for calculations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For date/time duration calculations intck: &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1md4mx2crzfaqn14va8kt7qvfhr.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1md4mx2crzfaqn14va8kt7qvfhr.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;For advancing back and up in time intnx: &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p10v3sa3i4kfxfn1sovhi5xzxh8n.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p10v3sa3i4kfxfn1sovhi5xzxh8n.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;For presenting something age in a structure PyyMdd use formats. In this case the string is varying between 4 and 6. (advice fix that on 6, usage of blanks or zeros)&lt;/P&gt;&lt;P&gt;Of course you can manipulate strings as you did with pencil and paper. At some moment you will find that getting very complicated when using computers.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Suppose you are needing to recalculate after some time, knowing the birthday or making a good guess of that. It is about data quality. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 05:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/AGE-in-Years-and-Months/m-p/186448#M47343</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-05T05:47:56Z</dc:date>
    </item>
  </channel>
</rss>

