<?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: Calling PL/SQL procedures and reteriving outputs in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147612#M29257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to call a stored procedure through a EXCUTE block in proc sql.&lt;/P&gt;&lt;P&gt;But you can't retrieve a value that way.&lt;/P&gt;&lt;P&gt;The only way to retrieve a value directly back to SAS i through a select statement (from connection to...()).&lt;/P&gt;&lt;P&gt;Perhaps you could store the return value in a table for later retrieval?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 13:48:35 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-12-12T13:48:35Z</dc:date>
    <item>
      <title>Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147609#M29254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are tring to do an automation, with pl/sql block and SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to call the pl/sql procedure and to reterive a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Moovendhan D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 07:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147609#M29254</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-12-12T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147610#M29255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use SAS/ACCESS to connect to the database, then you can use SQL passthrough to execute SQL code in the DBMS.&lt;/P&gt;&lt;P&gt;If by "pl" you actually mean PL/1, this makes me think that you are working in a z/OS environment, so another option is to unload the DB data to flat files, process those with PL/1 code, and then import the (flat file) results into SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 08:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147610#M29255</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-12T08:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147611#M29256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use passthrough sql to execute packages on the oracle platform.&amp;nbsp; If you already have a libname defined (say OraLib) for the oracle connection, you can use the new connect using syntax.&amp;nbsp; If not, then you'll need to use the expanded connection syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect using OraLIb as OraCon;&lt;/P&gt;&lt;P&gt;execute (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec schema.packagename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) by OraCon;&lt;/P&gt;&lt;P&gt;disconnect from OraCon;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested it...but if your package returns values, then you might could use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table work.want as select * from connection to OraCon(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec schema.packagename&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 13:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147611#M29256</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-12-12T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147612#M29257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to call a stored procedure through a EXCUTE block in proc sql.&lt;/P&gt;&lt;P&gt;But you can't retrieve a value that way.&lt;/P&gt;&lt;P&gt;The only way to retrieve a value directly back to SAS i through a select statement (from connection to...()).&lt;/P&gt;&lt;P&gt;Perhaps you could store the return value in a table for later retrieval?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 13:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147612#M29257</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-12-12T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147613#M29258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bailey, this was very helpful, I will try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 16:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147613#M29258</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-12-12T16:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling PL/SQL procedures and reteriving outputs in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147614#M29259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Linus, but reteriving the value form a table stored in DB takes more time, I tried this.&lt;/P&gt;&lt;P&gt;This will occur multiple times in the automations step, so it will increase the execution time.&lt;/P&gt;&lt;P&gt;But if I don't have any other option I will go with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 16:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-PL-SQL-procedures-and-reteriving-outputs-in-SAS/m-p/147614#M29259</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-12-12T16:43:26Z</dc:date>
    </item>
  </channel>
</rss>

