<?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: Month value with decial -Date function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478296#M123349</link>
    <description>&lt;P&gt;As you state that year value is correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dd_m2 = (dur_d / 365.25)*12;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Jul 2018 07:23:56 GMT</pubDate>
    <dc:creator>DJongman</dc:creator>
    <dc:date>2018-07-16T07:23:56Z</dc:date>
    <item>
      <title>Month value with decial -Date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478290#M123345</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking a decimal value for the month column. For Year value i got the exact one. I have a trouble with the dd_m (month) column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While using INTCK func i got a month value but without a decimal.&lt;/P&gt;&lt;P&gt;Please suggest me to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data eee;
input dateonset mmddyy10.;
cards;
02/19/2004
01/20/2003
05/10/2003
05/21/2003
12/24/2002
05/20/2003
;


data dur1;
set eee;
tday = today();
dur_d = tday - dateonset;
dd_m = intck('month',dateonset,tday);
/**dd_m = dur_d / 12;****(Wrong value)***/  
dd_y = dur_d / 365.25;
format dd_y 4.1 dd_m 4.1 tday dateonset mmddyy10.;
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 06:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478290#M123345</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2018-07-16T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Month value with decial -Date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478296#M123349</link>
      <description>&lt;P&gt;As you state that year value is correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dd_m2 = (dur_d / 365.25)*12;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 07:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478296#M123349</guid>
      <dc:creator>DJongman</dc:creator>
      <dc:date>2018-07-16T07:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Month value with decial -Date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478342#M123367</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dd_m=yrdif(start,end,'act/act')*12;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 12:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478342#M123367</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-16T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Month value with decial -Date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478366#M123371</link>
      <description>&lt;P&gt;Since months vary from 28 to 31 days the decimal portion is highly suspect in interpretation.&lt;/P&gt;
&lt;P&gt;If you really need finer increments I would suggest days.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Month-value-with-decial-Date-function/m-p/478366#M123371</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-16T14:23:42Z</dc:date>
    </item>
  </channel>
</rss>

