<?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 function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/749012#M235312</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Any one correct my code i did not get idea&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the log of the code you ran that "did not get idea".&lt;/P&gt;</description>
    <pubDate>Sat, 19 Jun 2021 01:31:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-06-19T01:31:33Z</dc:date>
    <item>
      <title>intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748921#M235272</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  dsn;
res=intnx('day','1jan1960'd,today());
format date date9.;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here I want to know days between from 1JAN1960 to today&amp;nbsp;&lt;/P&gt;
&lt;P&gt;intnx or intck which one&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748921#M235272</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-06-18T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748924#M235273</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  dsn;
res=intnx('day','1jan1960'd,today());
format date date9.;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here I want to know days between from 1JAN1960 to today&amp;nbsp;&lt;/P&gt;
&lt;P&gt;intnx or intck which one&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Simple! Try INTNX and if that doesn't give you the answer you want, try INTCK. (Or look it up in the &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/allprodslang/syntaxByType-function.htm" target="_self"&gt;SAS documentation&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Side issue: TODAY() gives you the number of days since 01JAN1960, no need to compute it via some other function.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748924#M235273</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-18T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748926#M235275</link>
      <description>&lt;P&gt;Let's check the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="p10v3sa3i4kfxfn1sovhi5xzxh8n" class="xisDoc-title"&gt;INTNX Function&lt;/H1&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Increments a date, time, or datetime value by a given time interval&lt;/STRONG&gt;&lt;/FONT&gt;, and returns a date, time, or datetime value.&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="p1md4mx2crzfaqn14va8kt7qvfhr" class="xisDoc-title"&gt;INTCK Function&lt;/H1&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Returns the number of interval boundaries of a given kind that lie between two dates&lt;/STRONG&gt;&lt;/FONT&gt;, times, or datetime values.&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;And the documentation is available in multiple languages.&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  dsn;
res=intnx('day','1jan1960'd,today());
format date date9.;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here I want to know days between from 1JAN1960 to today&amp;nbsp;&lt;/P&gt;
&lt;P&gt;intnx or intck which one&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748926#M235275</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-18T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748929#M235276</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  _null_;
   Today=today();
   /* Use INTNX to produce a date value incremented from a start date */
   TargetDate=intnx('day',Today,30);
   /* Use INTCK to count the number of intervals between two dates */
   DaysBetween=intck('day',Today,TargetDate);
   format T: mmddyy10.;
   file print;
   put Today= TargetDate= DaysBetween=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;PRE class="batch"&gt;Today=06/18/2021 TargetDate=07/18/2021 DaysBetween=30  &lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748929#M235276</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2021-06-18T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748932#M235278</link>
      <description>&lt;P&gt;I want no of days between 1JAN1960 to today&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748932#M235278</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-06-18T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748937#M235279</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want no of days between 1JAN1960 to today&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You already got the answer to that.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748937#M235279</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-18T16:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748951#M235283</link>
      <description>I did not get answer</description>
      <pubDate>Fri, 18 Jun 2021 17:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748951#M235283</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-06-18T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748955#M235284</link>
      <description>&lt;P&gt;I 100% guarantee if you read this paper you will have the answer.&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748955#M235284</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-18T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748956#M235285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I did not get answer&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Learn to read.&lt;/P&gt;
&lt;P&gt;Quote from &lt;A href="https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748924/highlight/true#M235273" target="_blank" rel="noopener"&gt;PaigeMiller's post in this thread&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Side issue: TODAY() gives you the number of days since 01JAN1960, no need to compute it via some other function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748956#M235285</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-18T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748971#M235287</link>
      <description>Any one correct my code i did not get idea</description>
      <pubDate>Fri, 18 Jun 2021 18:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748971#M235287</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-06-18T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748974#M235289</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You want to know number of days since January 1,1960.&lt;BR /&gt;Any SAS date is number of days since January 1,1960. If no output format is specified than SAS prints or stores dates since&amp;nbsp;January 1,1960. Look at this example below. No special function needed&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
days_since01JAN1960=today();
put days_since01JAN1960=;
run;
/*Log output will be like this*/
1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         data _null_;
 74         days_since01JAN1960=today();
 75         put days_since01JAN1960=;
 76         run;
 
 days_since01JAN1960=22449&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope you have your answer .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 18:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748974#M235289</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-18T18:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748975#M235290</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
     number_of_days_since_01JAN1960=today();
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 18:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/748975#M235290</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-18T18:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/749012#M235312</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Any one correct my code i did not get idea&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the log of the code you ran that "did not get idea".&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 01:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function/m-p/749012#M235312</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-19T01:31:33Z</dc:date>
    </item>
  </channel>
</rss>

