<?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: Confusion about INTNX function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656639#M196944</link>
    <description>Thanks for your reply!</description>
    <pubDate>Thu, 11 Jun 2020 00:25:50 GMT</pubDate>
    <dc:creator>zihdonv19</dc:creator>
    <dc:date>2020-06-11T00:25:50Z</dc:date>
    <item>
      <title>Confusion about INTNX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656629#M196937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confused about the answer of this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question asks the retured date of&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;TargetYear=intnx('year','20Jul18'd,3); &lt;/EM&gt;&lt;/STRONG&gt;and the answer is&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;date value of 22281, which corresponds to January 1, 2021&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, i think the answer should be &lt;EM&gt;&lt;STRONG&gt;July 20, 2021&lt;/STRONG&gt;&lt;/EM&gt;. Could someone explain this question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 23:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656629#M196937</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2020-06-10T23:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion about INTNX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656631#M196939</link>
      <description>&lt;P&gt;There is another option to the function example not shown that provides an "alignment" value. It takes the values of Beginning, Middle, End or Same. The default if not provided is beginning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your expectation would be the result of&lt;/P&gt;
&lt;PRE&gt;TargetYear=intnx('year','20Jul18'd,3, 'S');&lt;/PRE&gt;
&lt;P&gt;Which will attempt to set the same day of the next interval, so if the interval is 'year' you get 20Jul2021. If the interval is 'month' you get 20Oct2018.&lt;/P&gt;
&lt;P&gt;If you have an interval of 'week' and ask for an alignment of 'M' or 'Middle' you get what ever the appropriate Wednesday would be. End would the last day of an interval, last day of the year, month or week.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 00:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656631#M196939</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-11T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion about INTNX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656633#M196940</link>
      <description>&lt;P&gt;sas intox gives the beginning of the time period you asked always. If you ask for 156 weeks. It will calculate 156 weeks and return sunday of the week as the answer. So you have to be careful what you chose as your intent period i.e. year, week, day. The smaller the time period granularity you chose the lesser the error.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 00:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656633#M196940</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-11T00:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion about INTNX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656638#M196943</link>
      <description>thanks for your reply!</description>
      <pubDate>Thu, 11 Jun 2020 00:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656638#M196943</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2020-06-11T00:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion about INTNX function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656639#M196944</link>
      <description>Thanks for your reply!</description>
      <pubDate>Thu, 11 Jun 2020 00:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confusion-about-INTNX-function/m-p/656639#M196944</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2020-06-11T00:25:50Z</dc:date>
    </item>
  </channel>
</rss>

