<?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: Using INTNX in Proc SQL gives error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472363#M30641</link>
    <description>&lt;P&gt;In an explicit pass-through, you need to use functions that the target database understands. intnx is not a function in Oracle SQL.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 03:34:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-06-22T03:34:29Z</dc:date>
    <item>
      <title>Using INTNX in Proc SQL gives error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472356#M30640</link>
      <description>&lt;P&gt;Hi Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that contains a Date Time field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I wrote a Proc SQL statement with the below WHERE Clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use the 'INTNX' Function to match the Date Time to a MthYr value such as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE intnx('month',datepart(c.DATETIME),0,'e') = 'MAY18'&lt;BR /&gt;&lt;BR /&gt;ERROR: ORACLE prepare error: ORA-00904: "INTNX": invalid identifier&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm getting an 'Invalid Identifier' Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I add a query builder to the existing table and create an expression using the exact same statement, it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone advise why this is so &amp;amp; how I need to write the WHERE clause so it will run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 02:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472356#M30640</guid>
      <dc:creator>Peter_B</dc:creator>
      <dc:date>2018-06-22T02:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using INTNX in Proc SQL gives error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472363#M30641</link>
      <description>&lt;P&gt;In an explicit pass-through, you need to use functions that the target database understands. intnx is not a function in Oracle SQL.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 03:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472363#M30641</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-22T03:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using INTNX in Proc SQL gives error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472364#M30642</link>
      <description>&lt;P&gt;Ah, Of Course!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Kurt.&amp;nbsp; :&amp;nbsp; &amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 03:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-INTNX-in-Proc-SQL-gives-error/m-p/472364#M30642</guid>
      <dc:creator>Peter_B</dc:creator>
      <dc:date>2018-06-22T03:36:32Z</dc:date>
    </item>
  </channel>
</rss>

