<?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: Oracle Store Procedure Execution with OUTPUT in SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887334#M43391</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446397"&gt;@higorcc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In this case I have a stored procedure with 1 IN (Input) and 2 OUT (output).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 2&amp;nbsp;OUT (output) when I execute I need declare these two "output".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Sql Developer I declare this code and it works, but when I put the same code in PROC SQL with Oracle Connection it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Higor Carvalho.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How can you tell it did not work?&amp;nbsp; It looks to me like you are writing output to symbols and not into an actual table that you can query.&amp;nbsp; Why not add a step to store those temporary symbols into a table so you can then query the table to get the results back to SAS?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 15:08:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-08-01T15:08:28Z</dc:date>
    <item>
      <title>Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887327#M43387</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to know, how can I execute &lt;STRONG&gt;Oracle&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;Store Procedure&amp;nbsp;&lt;/STRONG&gt;with OUTPUT variable in SAS GUIDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Sql Developer I can execute like you can see below and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oracle Code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR OUTPUT1 NUMBER;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;VAR OUTPUT2 NUMBER;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXECUTE StoredProcedure(99, :OUTPUT1, :OUTPUT2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I declare &lt;STRONG&gt;VAR OUTPUT NUMBER&lt;/STRONG&gt;&amp;nbsp;in PROC SQL it doesn't work.&lt;/P&gt;&lt;P&gt;Could you please help me with an alternative way to execute this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Higor Carvalho.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887327#M43387</guid>
      <dc:creator>higorcc</dc:creator>
      <dc:date>2023-08-01T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887328#M43388</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446397"&gt;@higorcc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to know, how can I execute &lt;STRONG&gt;Oracle&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;Store Procedure&amp;nbsp;&lt;/STRONG&gt;with OUTPUT variable in SAS GUIDE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Sql Developer I can execute like you can see below and it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oracle Code:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;VAR OUTPUT1 NUMBER;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;VAR OUTPUT2 NUMBER;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EXECUTE StoredProcedure(99, :OUTPUT1, :OUTPUT2);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I declare &lt;STRONG&gt;VAR OUTPUT NUMBER&lt;/STRONG&gt;&amp;nbsp;in PROC SQL it doesn't work.&lt;/P&gt;
&lt;P&gt;Could you please help me with an alternative way to execute this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Higor Carvalho.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am not sure what those two "output" thingys have to do with your problem.&lt;/P&gt;
&lt;P&gt;It looks like you have a procedure named STOREDPROCEDURE() that takes as input 3 numbers.&lt;/P&gt;
&lt;P&gt;So why not just do that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What numbers you want to pass in as the last two arguments to the procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887328#M43388</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-01T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887329#M43389</link>
      <description>&lt;P&gt;In this case I have a stored procedure with 1 IN (Input) and 2 OUT (output).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 2&amp;nbsp;OUT (output) when I execute I need declare these two "output".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Sql Developer I declare this code and it works, but when I put the same code in PROC SQL with Oracle Connection it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Higor Carvalho.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887329#M43389</guid>
      <dc:creator>higorcc</dc:creator>
      <dc:date>2023-08-01T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887334#M43391</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446397"&gt;@higorcc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In this case I have a stored procedure with 1 IN (Input) and 2 OUT (output).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 2&amp;nbsp;OUT (output) when I execute I need declare these two "output".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Sql Developer I declare this code and it works, but when I put the same code in PROC SQL with Oracle Connection it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Higor Carvalho.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How can you tell it did not work?&amp;nbsp; It looks to me like you are writing output to symbols and not into an actual table that you can query.&amp;nbsp; Why not add a step to store those temporary symbols into a table so you can then query the table to get the results back to SAS?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887334#M43391</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-01T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887385#M43392</link>
      <description>&lt;P&gt;Please post your SAS log including the complete code and any notes and errors.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/887385#M43392</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-08-01T20:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Store Procedure Execution with OUTPUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/888421#M43425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The solution is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oracle Code:&lt;BR /&gt;&lt;STRONG&gt;DECLARE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;OUTPUT1 NUMBER;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;OUTPUT2 NUMBER;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BEGIN&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StoredProcedure(99, OUTPUT1, OUTPUT2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved my issue by above code.&lt;/P&gt;&lt;P&gt;You need execute this code in&amp;nbsp;&lt;SPAN&gt;PROC SQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Higor Carvalho.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 16:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Oracle-Store-Procedure-Execution-with-OUTPUT-in-SAS/m-p/888421#M43425</guid>
      <dc:creator>higorcc</dc:creator>
      <dc:date>2023-08-08T16:24:42Z</dc:date>
    </item>
  </channel>
</rss>

