<?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 - strange behaviuor in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54577#M11575</link>
    <description>Lucas&lt;BR /&gt;
pardon me for the inappropriateness of my response&lt;BR /&gt;
I misjudged the objective of your posting&lt;BR /&gt;
Your posting has served to inform us&lt;BR /&gt;
as demonstrated by ArtC&lt;BR /&gt;
That you can shift a default interval&lt;BR /&gt;
interesting&lt;BR /&gt;
peterC</description>
    <pubDate>Thu, 23 Dec 2010 22:48:37 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-12-23T22:48:37Z</dc:date>
    <item>
      <title>INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54571#M11569</link>
      <description>Hi,&lt;BR /&gt;
Does anyone can explain what is the bahaviour of INTNX function when 'interval' argument is an integer number?&lt;BR /&gt;
&lt;BR /&gt;
data test1;&lt;BR /&gt;
format date1-date6 date.;&lt;BR /&gt;
date1=intnx("1",today(),0,"b");&lt;BR /&gt;
date2=intnx("2",today(),0,"b");&lt;BR /&gt;
date3=intnx("3",today(),0,"b");&lt;BR /&gt;
date4=intnx("4",today(),0,"b");&lt;BR /&gt;
date5=intnx("5",today(),0,"b");&lt;BR /&gt;
date6=intnx("6",today(),0,"b");&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The results are unexpected for me &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Thu, 23 Dec 2010 10:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54571#M11569</guid>
      <dc:creator>Lucas</dc:creator>
      <dc:date>2010-12-23T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54572#M11570</link>
      <description>Lucas&lt;BR /&gt;
 &lt;BR /&gt;
You are missing something. &lt;BR /&gt;
Have you looked at the examples in the on line doc?</description>
      <pubDate>Thu, 23 Dec 2010 12:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54572#M11570</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-12-23T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54573#M11571</link>
      <description>Peter.C&lt;BR /&gt;
&lt;BR /&gt;
Of course I have looked. It is always first thing I try to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Unfortunately there is nothing about situation I have mentioned.&lt;BR /&gt;
There is only description of intervals like 'Year', 'Month', 'Week'...</description>
      <pubDate>Thu, 23 Dec 2010 13:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54573#M11571</guid>
      <dc:creator>Lucas</dc:creator>
      <dc:date>2010-12-23T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54574#M11572</link>
      <description>Okay - please explain what you are attempting to accomplish with INTNX and what result would you like to see - show data values, please.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
using dates intnx site:sas.com</description>
      <pubDate>Thu, 23 Dec 2010 14:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54574#M11572</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-12-23T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54575#M11573</link>
      <description>I think you are misinterpreting what you can use as an interval.  In the explantion of the intnx function there is a link that explains valid values. &lt;BR /&gt;
&lt;BR /&gt;
The syntax explanation clearly states&lt;BR /&gt;
&lt;BR /&gt;
interval &lt;BR /&gt;
specifies the NAME of the basic interval type. For example, YEAR specifies yearly intervals.&lt;BR /&gt;
&lt;BR /&gt;
For a complete list of the valid values for interval, see the Intervals Used with Date and Time Functions table in SAS Language Reference: Concepts.&lt;BR /&gt;
&lt;BR /&gt;
I don't see '1','2' etc. listed in this table.

Message was edited by: LAP</description>
      <pubDate>Thu, 23 Dec 2010 19:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54575#M11573</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2010-12-23T19:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54576#M11574</link>
      <description>Lucas,&lt;BR /&gt;
Are you pointing out an oddity? Like: "why didn't I get an error for using an unspecified interval?".&lt;BR /&gt;
&lt;BR /&gt;
I believe the default interval is DAY and that the numbers are being picked up as interval multipliers.  Which shows us a bit about how the interval is parsed when multipliers and shift operators are included.  Consider this variation of your code:&lt;BR /&gt;
[pre]data test1;&lt;BR /&gt;
format date1-date6 date.;&lt;BR /&gt;
date1=intnx("1",today(),0,"b");&lt;BR /&gt;
date2=intnx("2",today(),0,"b");&lt;BR /&gt;
date3=intnx("3",today(),0,"b");&lt;BR /&gt;
date4=intnx("4",today(),0,"b");&lt;BR /&gt;
date5=intnx("5",today(),0,"b");&lt;BR /&gt;
date6=intnx("6",today(),0,"b");&lt;BR /&gt;
output;&lt;BR /&gt;
date1=intnx("day1",today(),0,"b");&lt;BR /&gt;
date2=intnx("day2",today(),0,"b");&lt;BR /&gt;
date3=intnx("day3",today(),0,"b");&lt;BR /&gt;
date4=intnx("day4",today(),0,"b");&lt;BR /&gt;
date5=intnx("day5",today(),0,"b");&lt;BR /&gt;
date6=intnx("day6",today(),0,"b");&lt;BR /&gt;
output;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=test1;&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Thu, 23 Dec 2010 20:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54576#M11574</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-12-23T20:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54577#M11575</link>
      <description>Lucas&lt;BR /&gt;
pardon me for the inappropriateness of my response&lt;BR /&gt;
I misjudged the objective of your posting&lt;BR /&gt;
Your posting has served to inform us&lt;BR /&gt;
as demonstrated by ArtC&lt;BR /&gt;
That you can shift a default interval&lt;BR /&gt;
interesting&lt;BR /&gt;
peterC</description>
      <pubDate>Thu, 23 Dec 2010 22:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54577#M11575</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-12-23T22:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54578#M11576</link>
      <description>Peter,&lt;BR /&gt;
&lt;BR /&gt;
Santa Clause was concerned there for a moment.&lt;BR /&gt;
&lt;BR /&gt;
Art</description>
      <pubDate>Thu, 23 Dec 2010 22:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54578#M11576</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2010-12-23T22:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function - strange behaviuor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54579#M11577</link>
      <description>&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Fri, 24 Dec 2010 09:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-strange-behaviuor/m-p/54579#M11577</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-12-24T09:10:12Z</dc:date>
    </item>
  </channel>
</rss>

