<?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 Not Working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487101#M126861</link>
    <description>&lt;P&gt;The DATA step statements execute in order, from top to bottom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are outputting before computing DT_CHECK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Move the OUTPUT statement to the bottom of the DATA step.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 18:02:44 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-08-15T18:02:44Z</dc:date>
    <item>
      <title>INTNX Function Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487100#M126860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, my INTNX function is not working and is returning a missing value. I just want to move forward one month. Here's some code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA test;
	SET membership1;
	IF _N_ in (16) THEN OUTPUT;
	format DT_CHECK mmddyy10.;
	DT_CHECK = intnx("month", EVENT_DT, 1);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;EVENT_DT is a SAS date (e.g., 01/25/2013)&amp;nbsp; and is formatted&amp;nbsp;as mmddyy10. My dataset has over 12,000 observations, so I wanted to just read in the 16th observation as a test. Can anyone help me fix my code? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487100#M126860</guid>
      <dc:creator>bhong</dc:creator>
      <dc:date>2018-08-15T18:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Function Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487101#M126861</link>
      <description>&lt;P&gt;The DATA step statements execute in order, from top to bottom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are outputting before computing DT_CHECK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Move the OUTPUT statement to the bottom of the DATA step.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487101#M126861</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-15T18:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Function Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487103#M126862</link>
      <description>Thank you! What a horrible mistake!</description>
      <pubDate>Wed, 15 Aug 2018 18:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487103#M126862</guid>
      <dc:creator>bhong</dc:creator>
      <dc:date>2018-08-15T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Function Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487104#M126863</link>
      <description>&lt;P&gt;Easily fixed, with a cup of coffee.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487104#M126863</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-15T18:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX Function Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487121#M126877</link>
      <description>&lt;P&gt;Following&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s suggestion, you will get what you need. However, theoretically speaking, you&amp;nbsp;don't just&amp;nbsp;READ-IN the 16th record,&amp;nbsp; you OUTPUT the 16th record while reading in every single record in your incoming dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To actually only READ-IN the 16th,&amp;nbsp;you&amp;nbsp;need either resort to point=&amp;nbsp;option, or bring in the data only with the 16th record, such as: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt; test&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="token keyword"&gt;SET&lt;/SPAN&gt; membership1(firstobs=16 obs=16)&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;blah...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;I know 12,000 probably only takes blink of eye to run, but if you are doing multi-M or B rows of data, this little test will still cost you some time :). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-Function-Not-Working/m-p/487121#M126877</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-08-15T18:39:08Z</dc:date>
    </item>
  </channel>
</rss>

