<?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:   Need syntax for executing Oracle PL/SQL Stored Procedures in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Need-syntax-for-executing-Oracle-PL-SQL-Stored/m-p/58765#M16516</link>
    <description>I'm looking details on how to utilize Oracle Stored Procedures using SAS.   The only info I've found so far is:&lt;BR /&gt;
---------------------------------------------&lt;BR /&gt;
PROC SQL &lt;OPTIONS&gt;; &lt;BR /&gt;
CONNECT TO DBMS-NAME &lt;AS alias=""&gt; &amp;lt;(&lt;DATABASE-CONNECTION-ARGUMENTS&gt; &lt;CONNECT-STATEMENT-ARGUMENTS&gt; )&amp;gt;; &lt;BR /&gt;
DISCONNECT FROM DBMS-NAME | ALIAS; &lt;BR /&gt;
EXECUTE (DBMS-SPECIFIC-SQL-STATEMENT) BY DBMS-NAME | ALIAS; &lt;BR /&gt;
SELECT COLUMN-LIST FROM CONNECTION TO DBMS-NAME | ALIAS (DBMS-QUERY) &lt;BR /&gt;
EXAMPLE &lt;BR /&gt;
proc sql; &lt;BR /&gt;
connect to oracle (user= &amp;amp;user password= &amp;amp;PWD path= &amp;amp;PATH ) ; &lt;BR /&gt;
exec(alter table official_index disable constraint FK1_INDEX_SID) by oracle; &lt;BR /&gt;
exec(truncate table official_index) by oracle; &lt;BR /&gt;
exec (alter table official_index enable constraint FK1_INDEX_SID) by oracle; &lt;BR /&gt;
disconnect from oracle ; &lt;BR /&gt;
quit; &lt;BR /&gt;
Note that when you want to execute a stored procedure you need to specify &lt;BR /&gt;
Exec (exec stored_procedure) by oracle; &lt;BR /&gt;
--------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know of a good manual or other resource?&lt;/CONNECT-STATEMENT-ARGUMENTS&gt;&lt;/DATABASE-CONNECTION-ARGUMENTS&gt;&lt;/AS&gt;&lt;/OPTIONS&gt;</description>
    <pubDate>Fri, 31 Oct 2008 11:55:49 GMT</pubDate>
    <dc:creator>JMarkW</dc:creator>
    <dc:date>2008-10-31T11:55:49Z</dc:date>
    <item>
      <title>PROC SQL:   Need syntax for executing Oracle PL/SQL Stored Procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Need-syntax-for-executing-Oracle-PL-SQL-Stored/m-p/58765#M16516</link>
      <description>I'm looking details on how to utilize Oracle Stored Procedures using SAS.   The only info I've found so far is:&lt;BR /&gt;
---------------------------------------------&lt;BR /&gt;
PROC SQL &lt;OPTIONS&gt;; &lt;BR /&gt;
CONNECT TO DBMS-NAME &lt;AS alias=""&gt; &amp;lt;(&lt;DATABASE-CONNECTION-ARGUMENTS&gt; &lt;CONNECT-STATEMENT-ARGUMENTS&gt; )&amp;gt;; &lt;BR /&gt;
DISCONNECT FROM DBMS-NAME | ALIAS; &lt;BR /&gt;
EXECUTE (DBMS-SPECIFIC-SQL-STATEMENT) BY DBMS-NAME | ALIAS; &lt;BR /&gt;
SELECT COLUMN-LIST FROM CONNECTION TO DBMS-NAME | ALIAS (DBMS-QUERY) &lt;BR /&gt;
EXAMPLE &lt;BR /&gt;
proc sql; &lt;BR /&gt;
connect to oracle (user= &amp;amp;user password= &amp;amp;PWD path= &amp;amp;PATH ) ; &lt;BR /&gt;
exec(alter table official_index disable constraint FK1_INDEX_SID) by oracle; &lt;BR /&gt;
exec(truncate table official_index) by oracle; &lt;BR /&gt;
exec (alter table official_index enable constraint FK1_INDEX_SID) by oracle; &lt;BR /&gt;
disconnect from oracle ; &lt;BR /&gt;
quit; &lt;BR /&gt;
Note that when you want to execute a stored procedure you need to specify &lt;BR /&gt;
Exec (exec stored_procedure) by oracle; &lt;BR /&gt;
--------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know of a good manual or other resource?&lt;/CONNECT-STATEMENT-ARGUMENTS&gt;&lt;/DATABASE-CONNECTION-ARGUMENTS&gt;&lt;/AS&gt;&lt;/OPTIONS&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Need-syntax-for-executing-Oracle-PL-SQL-Stored/m-p/58765#M16516</guid>
      <dc:creator>JMarkW</dc:creator>
      <dc:date>2008-10-31T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL:   Need syntax for executing Oracle PL/SQL Stored Procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Need-syntax-for-executing-Oracle-PL-SQL-Stored/m-p/58766#M16517</link>
      <description>Suggest searching the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  using your keyword references.  Here is one of several hits found.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Usage Note 18350: Calling Stored Procedures using SAS/ACCESS Interface to Oracle&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/18/350.html" target="_blank"&gt;http://support.sas.com/kb/18/350.html&lt;/A&gt;</description>
      <pubDate>Fri, 31 Oct 2008 12:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-Need-syntax-for-executing-Oracle-PL-SQL-Stored/m-p/58766#M16517</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-31T12:36:42Z</dc:date>
    </item>
  </channel>
</rss>

