<?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: ORA-24333 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482931#M286662</link>
    <description>I didn't think that was a duplicate. Yes, I've been programming in SAS for years, but my Oracle experience is limited to a couple pass-throughs a while ago and a course about 10 years ago.</description>
    <pubDate>Tue, 31 Jul 2018 19:55:24 GMT</pubDate>
    <dc:creator>mohassan99</dc:creator>
    <dc:date>2018-07-31T19:55:24Z</dc:date>
    <item>
      <title>ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480671#M286655</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run the following in a SQL Pass through and get ORA-24333.&amp;nbsp; How do I accomplish this with a pass through?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up doing the delete in SQL Developer, using the delete clause below, but if I run in again I get 24333.&amp;nbsp; Nevertheless, I commented it out and ran the insert clause and got 24333 again. Is it because I can't reference D.?&amp;nbsp; I thought I should be able to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC SQL;
	connect to ORACLE as hoa (user="&amp;amp;USR[HOA]" password="&amp;amp;PWD" PATH="@HOAP");

	%put &amp;amp;sqlxmsg;

	create table HOA.OBSER_QA AS
	select *
	   from connection to hoa
		(
		DELETE FROM HOA.OBSER_QA;

		INSERT INTO HOA.OBSER_QA
			(SELECT *
					,TODAY() AS LOAD_DATE
					,&amp;amp;_CLIENTUSERID. AS LOAD_BY
			 FROM D.SUMMARY&amp;amp;YEARMTH._0762;
		 	)
		);

	%put &amp;amp;sqlxmsg;

	disconnect from hoa;
QUIT;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;D.SUMMARY&amp;amp;YEARMTH._0762 has 23,624 observations. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Sample data attached.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 00:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480671#M286655</guid>
      <dc:creator>mohassan99</dc:creator>
      <dc:date>2018-07-24T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480672#M286656</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133172"&gt;@mohassan99&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;First step is always to copy/paste such error messages into a Google search. Below what I found:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/15/432.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/15/432.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 00:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480672#M286656</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-07-24T00:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480705#M286657</link>
      <description>&lt;P&gt;1. You seem to be using SAS syntax in a pass-thru query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything between the parentheses must be Oracle syntax and pointing to Oracle data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;from connection to hoa	( );&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You also seem to be pointing to a SAS table? That won't work either in a pass-thru query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. What are you hoping to select&amp;nbsp; in&lt;FONT face="courier new,courier"&gt;&amp;nbsp;select *&amp;nbsp; from connection to hoa&lt;/FONT&gt; when there is no select statement sent to Oracle?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. I reckon you don't want pass-thru here. Just run something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; delete from ORALIB.OBSER_QA;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc append data=D.SUMMARY&amp;amp;YEARMTH._0762 base=ORALIB.OBSER_QA;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 03:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/480705#M286657</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-24T03:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482568#M286658</link>
      <description>The link seemed to be broken. I'm fairly certain the issue is that referenced below. Its at least one of them. Thank you.</description>
      <pubDate>Mon, 30 Jul 2018 18:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482568#M286658</guid>
      <dc:creator>mohassan99</dc:creator>
      <dc:date>2018-07-30T18:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482571#M286659</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. I guess I need to find the SAS syntax, that wasn't my intention. I assumed today() was an oracle function too.&lt;BR /&gt;2. Yes, I just learned that's at issue. I'll come back to that.&lt;BR /&gt;3. I'm not sure I understand the question.&lt;BR /&gt;4. That might work. I should try it.&lt;BR /&gt;&lt;BR /&gt;Regarding 2&amp;amp; 3, the reason I switched to a pass-through was because 1. management has a desire to move away from SAS in our department. We have limited internal SAS support and&amp;nbsp;no dedicated SAS Admin at our company 2. I was getting this error:&lt;BR /&gt;&lt;BR /&gt;"ERROR: This SQL statement will not be passed to the DBMS for processing because it involves a join across librefs with different connection properties.&lt;BR /&gt;&lt;BR /&gt;Currently, even though an error occurs, SAS still fetches both tables and processes the join."&lt;BR /&gt;&lt;BR /&gt;Source:&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/40/132.html" target="_blank"&gt;http://support.sas.com/kb/40/132.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The original code causing this error was:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC DELETE DATA=HOA.OBSER_QA;
RUN;

DATA HOA.OBSER_QA;
     SET D.SUMMARY&amp;amp;YEARMTH._0762;
     LOAD_DATE=TODAY();
     FORMAT LOAD_DATE MMDDYY10.;
     LENGTH LOAD_BY $20;
     LOAD_BY="&amp;amp;_CLIENTUSERID.";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482571#M286659</guid>
      <dc:creator>mohassan99</dc:creator>
      <dc:date>2018-07-30T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482637#M286660</link>
      <description>&lt;P&gt;You seem to have limited knowledge of Oracle as well. You may want to keep&amp;nbsp;the working code that you had.&lt;/P&gt;
&lt;P&gt;Why did you open a duplicate question &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Deleting-and-replacing-an-Oracle-table-is-causing-issues-and-a/m-p/482636" target="_self"&gt;here&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 22:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482637#M286660</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-30T22:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482638#M286661</link>
      <description>&lt;P&gt;You show us a data step and an SQL error?&lt;/P&gt;
&lt;P&gt;Run this before the code&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;options sastrace=',,,db' sastraceloc=saslog ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;and show us the full log please&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 22:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482638#M286661</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-30T22:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-24333</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482931#M286662</link>
      <description>I didn't think that was a duplicate. Yes, I've been programming in SAS for years, but my Oracle experience is limited to a couple pass-throughs a while ago and a course about 10 years ago.</description>
      <pubDate>Tue, 31 Jul 2018 19:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-24333/m-p/482931#M286662</guid>
      <dc:creator>mohassan99</dc:creator>
      <dc:date>2018-07-31T19:55:24Z</dc:date>
    </item>
  </channel>
</rss>

