<?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: Difference in Dates in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272476#M54202</link>
    <description>&lt;P&gt;That worked! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick reply.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 17:21:09 GMT</pubDate>
    <dc:creator>ashwini2</dc:creator>
    <dc:date>2016-05-23T17:21:09Z</dc:date>
    <item>
      <title>Difference in Dates in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272467#M54197</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;If the difference between &lt;FONT color="#800080" face="Courier New"&gt;b.HRA_Unreachable_Date AND TODAY is &amp;lt; 15 then i want to categorize it as "1-15".&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT color="#800080" face="Courier New"&gt;But the statemenet i wrote does not work. &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT color="#800080" face="Courier New"&gt;b.HRA_Unreachable_Date&amp;nbsp; is numeric (Date integer from Jan 1, 1960).&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT color="#800080" face="Courier New"&gt;Error:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: Function INTCK requires a numeric expression as argument 2.&lt;/P&gt;&lt;P&gt;ERROR: Function INTCK requires a numeric expression as argument 3.&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;proc sql;

create table timeframes as

select distinct a.medicaid_id

, b.min_transfer_Dt

, b.HRA_Unreachable_Date

 , case when intck('day', "b.HRA_Unreachable_Date", "today()") &amp;lt; "15" then "1-15"

else null end as timeframe

 

from HSD.tbl_unreachables as b inner join HSD.Final_attempts as a on b.medicaid_id= a.medicaid_id

;

quit;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2016 17:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272467#M54197</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-05-23T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Dates in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272474#M54201</link>
      <description>&lt;P&gt;First try this&lt;BR /&gt;intck('day', b.HRA_Unreachable_Date, today()) &amp;lt; 15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You were not comparing the varible but the text of the name b.HRA etc, also the result of INTNX is numeric so do not compare to a text value "15".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still get messages about incompatible types it may mean that your HRA_Unreachable_date variable is not a SAS numeric date value but is character. You should go back further in your process and insure the date variable is a SAS date valued numeric.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 17:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272474#M54201</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-23T17:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Dates in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272476#M54202</link>
      <description>&lt;P&gt;That worked! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick reply.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 17:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-Dates-in-SAS/m-p/272476#M54202</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-05-23T17:21:09Z</dc:date>
    </item>
  </channel>
</rss>

