<?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: INTNX Issues in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14519#M1863</link>
    <description>Are there conditions where we cannot replace the INTCK with just &lt;BR /&gt;
today()-181  ?</description>
    <pubDate>Wed, 05 May 2010 23:43:14 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2010-05-05T23:43:14Z</dc:date>
    <item>
      <title>INTNX Issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14515#M1859</link>
      <description>Hi everyone...&lt;BR /&gt;
&lt;BR /&gt;
I have a SQL routine that pulls data from a large data warehouse.  In it I have a where statement where one of the conditions is as follows:&lt;BR /&gt;
&lt;BR /&gt;
Where AdmitDT&amp;gt;INTNX('Day', Today(), -181)&lt;BR /&gt;
&lt;BR /&gt;
Basically, I want to count back and include those records where the AdmitDt is greater than 181 days prior to today.  However, SAS does not like this statement at all.  I have a feeling that I am doing something that completely demonstrates my lack of knowledge in handling dates and times in SAS.  Any help would be appreciated.</description>
      <pubDate>Mon, 03 May 2010 19:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14515#M1859</guid>
      <dc:creator>DJENS</dc:creator>
      <dc:date>2010-05-03T19:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14516#M1860</link>
      <description>Your statement works perfect to me bother data step and proc sql.&lt;BR /&gt;
&lt;BR /&gt;
97   data test;&lt;BR /&gt;
98   format AdmitDT yymmddn8.;&lt;BR /&gt;
99   do i = 1 to 365;&lt;BR /&gt;
100       AdmitDT = today() - i;&lt;BR /&gt;
101       output;&lt;BR /&gt;
102  end;&lt;BR /&gt;
103  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The data set WORK.TEST has 365 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
104&lt;BR /&gt;
105  data t;&lt;BR /&gt;
106    set test;&lt;BR /&gt;
107    if AdmitDT &amp;gt; INTNX('Day', Today(), -181);&lt;BR /&gt;
108  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 365 observations read from the data set WORK.TEST.&lt;BR /&gt;
NOTE: The data set WORK.T has 180 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
109&lt;BR /&gt;
110  proc sql;&lt;BR /&gt;
111  create table t1 as&lt;BR /&gt;
112    select * from test&lt;BR /&gt;
113    where AdmitDT &amp;gt; INTNX('Day', Today(), -181);&lt;BR /&gt;
NOTE: Table WORK.T1 created, with 180 rows and 2 columns.&lt;BR /&gt;
&lt;BR /&gt;
114  quit;&lt;BR /&gt;
NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.01 seconds</description>
      <pubDate>Mon, 03 May 2010 19:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14516#M1860</guid>
      <dc:creator>P_J</dc:creator>
      <dc:date>2010-05-03T19:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14517#M1861</link>
      <description>Are you running this in SAS or as a pass-thru.  This is a SAS function which will not work if you run in a pass-Thru</description>
      <pubDate>Tue, 04 May 2010 11:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14517#M1861</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-05-04T11:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14518#M1862</link>
      <description>to generate code filtering just the last 180 days, let the macro language help .... [pre]  Where AdmitDT  &amp;gt; "%sysfunc( INTNX( Day, '&amp;amp;sysdate9'd, -181),date9)"d  [/pre]&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Wed, 05 May 2010 12:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14518#M1862</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-05-05T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14519#M1863</link>
      <description>Are there conditions where we cannot replace the INTCK with just &lt;BR /&gt;
today()-181  ?</description>
      <pubDate>Wed, 05 May 2010 23:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Issues/m-p/14519#M1863</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-05-05T23:43:14Z</dc:date>
    </item>
  </channel>
</rss>

