<?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 intnx function  with a interval name adding shift-index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intnx-function-with-a-interval-name-adding-shift-index/m-p/642871#M191838</link>
    <description>&lt;P&gt;Run DATA step in the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _null_;
x1=intnx('week','5APR2020'd,0);
x2=intnx('week','5APR2020'd,1);
y1=intnx('week.2','5APR2020'd,0);
y2=intnx('week.2','5APR2020'd,1);
put (x1 x2 y1 y2) (yymmdd10.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;output&amp;nbsp;reads&lt;BR /&gt;2020-04-05 2020-04-12 2020-03-30 2020-04-06&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;I&amp;nbsp;can't&amp;nbsp;understand&amp;nbsp;why intnx('week.2','5APR2020'd,0) return to 2020-03-30,but intnx('week','5APR2020'd,0) to 2020-04-05,since&amp;nbsp;increments&amp;nbsp;are 0.&amp;nbsp;in&amp;nbsp;the both&amp;nbsp;functions.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2020 12:08:31 GMT</pubDate>
    <dc:creator>Steve1964</dc:creator>
    <dc:date>2020-04-25T12:08:31Z</dc:date>
    <item>
      <title>intnx function  with a interval name adding shift-index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function-with-a-interval-name-adding-shift-index/m-p/642871#M191838</link>
      <description>&lt;P&gt;Run DATA step in the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _null_;
x1=intnx('week','5APR2020'd,0);
x2=intnx('week','5APR2020'd,1);
y1=intnx('week.2','5APR2020'd,0);
y2=intnx('week.2','5APR2020'd,1);
put (x1 x2 y1 y2) (yymmdd10.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;output&amp;nbsp;reads&lt;BR /&gt;2020-04-05 2020-04-12 2020-03-30 2020-04-06&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;I&amp;nbsp;can't&amp;nbsp;understand&amp;nbsp;why intnx('week.2','5APR2020'd,0) return to 2020-03-30,but intnx('week','5APR2020'd,0) to 2020-04-05,since&amp;nbsp;increments&amp;nbsp;are 0.&amp;nbsp;in&amp;nbsp;the both&amp;nbsp;functions.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 12:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function-with-a-interval-name-adding-shift-index/m-p/642871#M191838</guid>
      <dc:creator>Steve1964</dc:creator>
      <dc:date>2020-04-25T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function  with a interval name adding shift-index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-function-with-a-interval-name-adding-shift-index/m-p/642873#M191840</link>
      <description>&lt;PRE&gt;intnx('week.2','5APR2020'd,0)&lt;/PRE&gt;
&lt;P&gt;finds the first day of the week (where week is defined as starting on a Monday) of the week of April 5, 2020, which is March 30, 2020.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;intnx('week','5APR2020'd,0)&lt;/PRE&gt;
&lt;P&gt;finds the first day of the week (where week is defined as starting on a Sunday) of the week of April 5, 2020, which is April 5, 2020.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 12:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-function-with-a-interval-name-adding-shift-index/m-p/642873#M191840</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-25T12:12:59Z</dc:date>
    </item>
  </channel>
</rss>

