<?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: intck fx error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691070#M210293</link>
    <description>&lt;P&gt;If you want to count calendar months rather than month boundaries then use this option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x_age_mn_m1 = intck("month", dob, 1_date, 'C');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 20:05:17 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-10-12T20:05:17Z</dc:date>
    <item>
      <title>intck fx error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691059#M210290</link>
      <description>&lt;P&gt;I'm using this code to calculate age in months using two different methods:&lt;/P&gt;&lt;P&gt;x_age_mn_m1 = intck("month", dob, 1_date)+0.5;&lt;BR /&gt;x_age_mn_d1 = intck ("day", dob, 1_date)/30.43;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x_age_mn_m2 = intck("month", dob, 2_date)+0.5;&lt;BR /&gt;x_age_mn_d2 = intck ("day", dob, 2_date)/30.43;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works fine, but there are improbable values generated for the age_mn variables (x_age_mn_m1&amp;nbsp; and x_age_mn_d1) one of the inputs, only one!&lt;/P&gt;&lt;P&gt;Why does this happen, and how can I solve it? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;DOB&lt;/TD&gt;&lt;TD&gt;1_date&lt;/TD&gt;&lt;TD&gt;x_age_mn_m1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;x_age_mn_d1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2_date&lt;/TD&gt;&lt;TD&gt;x_age_mn_m2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;x_age_mn_d2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;z&lt;/TD&gt;&lt;TD&gt;05/23/2012&lt;/TD&gt;&lt;TD&gt;03/30/3017&lt;/TD&gt;&lt;TD&gt;12058.5&lt;/TD&gt;&lt;TD&gt;12060.93&lt;/TD&gt;&lt;TD&gt;05/15/2017&lt;/TD&gt;&lt;TD&gt;60.5&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;59.744&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Oct 2020 19:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691059#M210290</guid>
      <dc:creator>fa04</dc:creator>
      <dc:date>2020-10-12T19:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: intck fx error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691064#M210291</link>
      <description>&lt;P&gt;Did you intend for that date to be almost 1,000 years in the future?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;03/30/&lt;FONT size="5"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/FONT&gt;017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 19:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691064#M210291</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-12T19:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: intck fx error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691070#M210293</link>
      <description>&lt;P&gt;If you want to count calendar months rather than month boundaries then use this option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x_age_mn_m1 = intck("month", dob, 1_date, 'C');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 20:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691070#M210293</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-12T20:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: intck fx error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691111#M210308</link>
      <description>Look at the FOURTH parameter for the INTCK function which allows you to control how the calcuation occurs in a little more detail.</description>
      <pubDate>Tue, 13 Oct 2020 00:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-fx-error/m-p/691111#M210308</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-13T00:54:21Z</dc:date>
    </item>
  </channel>
</rss>

