<?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 Stored Procedure DBMS_OUT in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197218#M49267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I am aware, no, its not possible.&amp;nbsp; The reason being is that SAS sends the statements in the passthrough to the database.&amp;nbsp; The database does its thing.&amp;nbsp; If a table is created, then that table is returned to SAS.&amp;nbsp; Anything else is done only on the database, e.g. each database does its own thing differently.&amp;nbsp; &lt;/P&gt;&lt;P&gt;More interestingly though, why would you want to do this?&amp;nbsp; The database and SAS are different applications.&amp;nbsp; The SQL passthrough is merely a method of transferring data between the two.&amp;nbsp; So irrespective of what is being put the log in the database, this may have not bearing whatsoever on the data thats being processed?&amp;nbsp; It sounds a bit like your trying to run the database from SAS, me personally I wouldn't, I would use the admin tools provided with the database.&amp;nbsp; SAS doesn't really provide anything over and above a database to warrant controlling the DB from SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 12:50:40 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-04-16T12:50:40Z</dc:date>
    <item>
      <title>Oracle Stored Procedure DBMS_OUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197217#M49266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;Is there a way to display the text that is generated with DMBS_OUT in SAS?&lt;/P&gt;&lt;P&gt;The stored procedure contains plenty of lines like:&lt;/P&gt;&lt;P&gt;DBMS_OUTPUT.put_line(TO_CHAR(SQL%ROWCOUNT)||' Rows inserted into table T-xxxx');&amp;nbsp; &lt;/P&gt;&lt;P&gt;I can see them using the oracle sql developer client when executing but when I want to execute them in SAS this information gets omitted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt; connect to oracle as test(user=xxxx password=yyyyy path=DB);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table positive as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from connection to ccccc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXEC P_mystuff(2014);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; disconnect from test;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 11:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197217#M49266</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-04-16T11:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Stored Procedure DBMS_OUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197218#M49267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I am aware, no, its not possible.&amp;nbsp; The reason being is that SAS sends the statements in the passthrough to the database.&amp;nbsp; The database does its thing.&amp;nbsp; If a table is created, then that table is returned to SAS.&amp;nbsp; Anything else is done only on the database, e.g. each database does its own thing differently.&amp;nbsp; &lt;/P&gt;&lt;P&gt;More interestingly though, why would you want to do this?&amp;nbsp; The database and SAS are different applications.&amp;nbsp; The SQL passthrough is merely a method of transferring data between the two.&amp;nbsp; So irrespective of what is being put the log in the database, this may have not bearing whatsoever on the data thats being processed?&amp;nbsp; It sounds a bit like your trying to run the database from SAS, me personally I wouldn't, I would use the admin tools provided with the database.&amp;nbsp; SAS doesn't really provide anything over and above a database to warrant controlling the DB from SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 12:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197218#M49267</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-16T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Stored Procedure DBMS_OUT in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197219#M49268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9.&lt;/P&gt;&lt;P&gt;Why I want to do it? Because it's an end user requirement to run the whole data processing done in Oracle Stored Procedures from SAS.&lt;/P&gt;&lt;P&gt;Reason, they dont have ETL Software like SAS DI, they don´t know how to use SQL Clients, they just know SAS and they want to know if the&lt;/P&gt;&lt;P&gt;Procedures run. Alternative: I write all the "messages" of success and stuff in a Log table. That always works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 07:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-Stored-Procedure-DBMS-OUT-in-SAS/m-p/197219#M49268</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-04-30T07:42:09Z</dc:date>
    </item>
  </channel>
</rss>

