<?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 returns only null values? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375149#M276440</link>
    <description>&lt;P&gt;1. No errors in the log&lt;/P&gt;&lt;P&gt;2. It is a datetime variable! I'll try those options and report back shortly&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 22:13:06 GMT</pubDate>
    <dc:creator>ewv</dc:creator>
    <dc:date>2017-07-11T22:13:06Z</dc:date>
    <item>
      <title>INTNX function returns only null values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375147#M276438</link>
      <description>&lt;P&gt;I am trying to use the INTNX function within Proc SQL. I'd like it to convert my DATEVARIABLE to the first day of the week for a series of dates spanning several years. The coded I'm using is below.&lt;/P&gt;&lt;PRE&gt;PROC SQL;&lt;BR /&gt;SELECT intnx('week',DATEVARIABLE,0,'B') AS CalendarWeek&lt;BR /&gt;FROM Table&lt;BR /&gt;QUIT;&lt;/PRE&gt;&lt;P&gt;The issue I'm having is that it only returns null values. My expectations is that it would take any day of the week and output the beginning day (Sunday in this case).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions to try would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375147#M276438</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2017-07-11T22:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function returns only null values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375148#M276439</link>
      <description>&lt;P&gt;1. Are there any errors in your log&lt;/P&gt;
&lt;P&gt;2. Do you have a date or datetime variable? If it's datetime variable use DTWEEK or WEEKDT as the interval not WEEK, sorry can't recall the order.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375148#M276439</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-11T22:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function returns only null values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375149#M276440</link>
      <description>&lt;P&gt;1. No errors in the log&lt;/P&gt;&lt;P&gt;2. It is a datetime variable! I'll try those options and report back shortly&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375149#M276440</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2017-07-11T22:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX function returns only null values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375150#M276441</link>
      <description>&lt;P&gt;DTWEEK did the trick. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-function-returns-only-null-values/m-p/375150#M276441</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2017-07-11T22:16:36Z</dc:date>
    </item>
  </channel>
</rss>

