<?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 PROC SQL Pass-Through facility (Oracle procedure) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190797#M48086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a lot of experience with calling Oracle procedures as a pass-through, but I have a problem where this might be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading this SAS note (&lt;A href="http://support.sas.com/kb/18/350.html" title="http://support.sas.com/kb/18/350.html"&gt;18350 - Calling stored procedures using SAS/ACCESS® Interface to Oracle&lt;/A&gt;), I am not sure what, "However, this will only run non-query type statements. Therefore, result sets cannot be returned." means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been calling an Oracle procedure using the approach below with a list of values (1M rows) I want decoded and returned by the procedure in a table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to oracle (user=userid password=password path=database_name);&lt;/P&gt;&lt;P&gt;execute (execute st_pr_name('parm')) by oracle;&lt;/P&gt;&lt;P&gt;disconnect from oracle;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 02:26:32 GMT</pubDate>
    <dc:creator>jbear</dc:creator>
    <dc:date>2014-07-23T02:26:32Z</dc:date>
    <item>
      <title>PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190797#M48086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a lot of experience with calling Oracle procedures as a pass-through, but I have a problem where this might be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading this SAS note (&lt;A href="http://support.sas.com/kb/18/350.html" title="http://support.sas.com/kb/18/350.html"&gt;18350 - Calling stored procedures using SAS/ACCESS® Interface to Oracle&lt;/A&gt;), I am not sure what, "However, this will only run non-query type statements. Therefore, result sets cannot be returned." means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been calling an Oracle procedure using the approach below with a list of values (1M rows) I want decoded and returned by the procedure in a table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to oracle (user=userid password=password path=database_name);&lt;/P&gt;&lt;P&gt;execute (execute st_pr_name('parm')) by oracle;&lt;/P&gt;&lt;P&gt;disconnect from oracle;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 02:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190797#M48086</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-23T02:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190798#M48087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@jbear,&amp;nbsp;&amp;nbsp; SQL was intended as an internal standard language that every DBMS would understand. Something like Esperanto.&lt;/P&gt;&lt;P&gt;What happened is a lot of dialects not understanding each other.&amp;nbsp;&amp;nbsp; SAS is kept their implementation near to the ANSI-SQL when using that, still some differences.&lt;/P&gt;&lt;P&gt;Their programming languages is offering a lot of other functionality not present in SQL.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;What is done is translating each request to SQL when SAS is needing data rfrm a DBMS. This is done implicit (eg using a libname) you are not exactly coding the sql or you code it manual without SAS being involved on that, that is explicit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the explicit pass through, this is the sample you have given, you can code everything the external DBMS can understand and that will run.&lt;/P&gt;&lt;P&gt;Could defnining a table adding users autorisation anything.&amp;nbsp; That is not quering data, you cannot expect some data coming back. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That is strange doing a query for data (SQL) and not getting any.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Makes sense in your case as the called procedure could only do some cleanups.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 07:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190798#M48087</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-23T07:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190799#M48088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just like to add to Jaap Karman's post that if you are using Oracle, I would assume that you have Toad, or SQL Developer or some SQL interface to Oracle installed.&amp;nbsp; What I would suggest is that you write the code there that you want to execute and test it.&amp;nbsp; Once it works then copy it over and paste it in between the brackets on the execute statement.&amp;nbsp; Then, assuming your connection information is correct that whole block should be sent to OC's SQL parser to run, much like when run through Toad, and hence should then return results.&amp;nbsp; TBH I have not seen that type of call either, generally speaking we would use SQL to extract data from a database, e.g. select * from table, and hence get some results back.&amp;nbsp; I have no idea what the function: st_pr_name, is actually doing, it could just be a comment for instance hence no results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 08:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190799#M48088</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-23T08:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190800#M48089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this make makes more sense now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 14:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190800#M48089</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-23T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190801#M48090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I'm gonna try it in TOAD, the procedure called is supposed to decode VINs. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 14:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190801#M48090</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-23T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190802#M48091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm stuck on this one....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the proc in TOAD (It runs correctly):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white; font-family: 'Anonymous Pro';"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_A&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;CHAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_B&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;CHAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_C&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;32767&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_D&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;32767&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_E&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;32767&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_F&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_G&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_H&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;CHAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_I&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;CHAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_J&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;32767&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_K&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_L&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_M&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;VARCHAR2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: maroon; font-size: 10pt;"&gt;40&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_N&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white; font-family: 'Anonymous Pro';"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_A&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;'99'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_B&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;'AA'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_C&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;'H'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_D&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_E&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;'99999999999999999'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_F&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_G&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_H &lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_I&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_J&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_K &lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_L&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_M&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_N&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;:=&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;PKG_PROC&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_A&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_B&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_C, P_D, P_E, P_F, P_G, P_H, P_I, P_J, P_K, P_L, P_M, P_N&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: black; font-size: 10pt; background: white; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;&lt;EM&gt;dbms_output.put_line&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_M&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: black; font-size: 10pt; background: white; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;&lt;EM&gt;dbms_output.put_line&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;P_N&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: blue; font-size: 10pt;"&gt;END;&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white; font-family: 'Anonymous Pro';"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try the pass-through using this SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/**/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;connect&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; oracle (user= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'UserID'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; password= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Pass'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; path= server);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; (call &lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: black; font-size: 10pt;"&gt;PKG_PROC&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'99'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'AA'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'H'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; background: white; color: red; font-size: 10pt;"&gt;99999999999999999&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;',null,null,null,null,null,null,null,null,null&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; oracle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;disconnect&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; oracle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error: ORACLE execute error: ORA-06550: line 1, column 79:PLS-00363: expression ' NULL' cannot be used as an assignment targetORA-06550&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If try to omit the null parameters I get another error for not having enough parameters....I don't know how to pass the nulls. Also in the SAS documentation it says that you have to call a proc with another proc that calls that one and writes results in a temp table in oracle which you can then view from SAS...I wonder if that's another issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190802#M48091</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-23T20:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190803#M48092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot check this myself at the moment, but I know this: The logic on the Null is quite not logical.&lt;/P&gt;&lt;P&gt;In an DBMS environment it has the meaning: record/field has not been used/filled. There is no value as nothing exist. Better coding would be "not exist" This architectural/conceptual mistakes happen as shit happens.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://en.wikipedia.org/wiki/Null_(SQL"&gt;http://en.wikipedia.org/wiki/Null_(SQL&lt;/A&gt;). Null is reserved word no value.&lt;/P&gt;&lt;P&gt;This is quite different in statistical approaches (SAS) where the missing us one (ore more) special values. Those are really different concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand what toad is doing with those declares. I can see your call is not exactly the same in Toad as in SAS. &lt;/P&gt;&lt;P&gt;The call statement to oracle with SAS explicit pass through is coded specfiying all values.&amp;nbsp; Null is no value as explained. The Oracle error is giving you that as error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; (call &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'MS Shell Dlg 2','sans-serif'; font-size: 10pt;"&gt;PKG_PROC&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'99'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'AA'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'H'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: red; font-family: 'MS Shell Dlg 2','sans-serif'; font-size: 10pt;"&gt;99999999999999999&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;',,,,,,,,,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; oracle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Remember that PKG_Proc is build by somebody at your location. You should ask him how to specify the hardcoded values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 21:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190803#M48092</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-23T21:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190804#M48093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. It didn't quite work with SAS so I outsourced it to PL/SQL and then imported results to SAS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 21:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190804#M48093</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-24T21:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190805#M48094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like the package is expecting to be passed variable names that it can write values into.&lt;/P&gt;&lt;P&gt;In particular the one P_M and P_N that you are then displaying after the package call.&lt;/P&gt;&lt;P&gt;Hence it does not work when you pass it values instead of variable names.&amp;nbsp; There is no variable for it to store its results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 01:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190805#M48094</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-25T01:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190806#M48095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was exactly what was happening. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190806#M48095</guid>
      <dc:creator>jbear</dc:creator>
      <dc:date>2014-07-28T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Pass-Through facility (Oracle procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190807#M48096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your Oracle stored procedure could be changed to produce a view instead of a result set then this would work fine in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this approach a lot - the EXECUTE step runs the stored proc creating a view then a second step doing a select * from the view reads the result set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 22:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Pass-Through-facility-Oracle-procedure/m-p/190807#M48096</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-07-28T22:04:18Z</dc:date>
    </item>
  </channel>
</rss>

