<?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 Passing Oracle option from SAS SQL pass through facility. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120988#M33358</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;I want to pass the Oracle option "set serveroutput off" from SQL SAS pass through.and another declare the variable&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;connect to ORACLE (user=&amp;amp;usr pw=&amp;amp;pw);&lt;/P&gt;&lt;P&gt;execute(set serveroutput off) by ORACLE;&lt;/P&gt;&lt;P&gt;execute( dte date:=('&amp;amp;1', 'DDMMYYYY')) 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;But it is throughing error.&lt;/P&gt;&lt;P&gt;Please help me how I can execute the above steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 13:41:32 GMT</pubDate>
    <dc:creator>mvskumar16</dc:creator>
    <dc:date>2013-10-23T13:41:32Z</dc:date>
    <item>
      <title>Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120988#M33358</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;I want to pass the Oracle option "set serveroutput off" from SQL SAS pass through.and another declare the variable&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;connect to ORACLE (user=&amp;amp;usr pw=&amp;amp;pw);&lt;/P&gt;&lt;P&gt;execute(set serveroutput off) by ORACLE;&lt;/P&gt;&lt;P&gt;execute( dte date:=('&amp;amp;1', 'DDMMYYYY')) 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;But it is throughing error.&lt;/P&gt;&lt;P&gt;Please help me how I can execute the above steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120988#M33358</guid>
      <dc:creator>mvskumar16</dc:creator>
      <dc:date>2013-10-23T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120989#M33359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the option throwing the error or is the second statement? I think you will have trouble with the single quotes around a macro variable - you either need to have &amp;amp;1 contain its own single quotes, or use something like %bquote('&amp;amp;1') to force it to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120989#M33359</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-23T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120990#M33360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Snoopy,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I am getting error for both the statements.&lt;/P&gt;&lt;P&gt;I tried even using %bquote. But, didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first statement The error msg is " ORA 00922 missing or invalid option".&lt;/P&gt;&lt;P&gt;second the error msg is " ORA 06550 execute error"&lt;/P&gt;&lt;P&gt;The second statement was execute(declare dte date:=('&amp;amp;1', 'DDMMYYYY') by ORACLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120990#M33360</guid>
      <dc:creator>mvskumar16</dc:creator>
      <dc:date>2013-10-23T14:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120991#M33361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're in the land of Oracle issues, then, or at least beyond my knowledge of passthrough.&amp;nbsp; I don't know if you can even set a variable in passthrough; that's PL/SQL, and I don't know what happens there.&amp;nbsp; You might try setting up a stored procedure in Oracle to do these things, and call it through passthrough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120991#M33361</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-23T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120992#M33362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SQL pass-thru, you are usually limited to use "pure" SQL statement, such as create, grant etc. So I don't think you can use other type of Oracle PL/SQL statements.&lt;/P&gt;&lt;P&gt;So you need to figure out from the Oracle side how set any specific variable values, perhaps via a Stored Procedure as &lt;A _jive_internal="true" href="https://communities.sas.com/people/snoopy369"&gt;https://communities.sas.com/people/snoopy369&lt;/A&gt; suggests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120992#M33362</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-24T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120993#M33363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Snoopy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thank you for your input. Issue got resolved. We created the stored proc and call it from SAS sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 11:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120993#M33363</guid>
      <dc:creator>mvskumar16</dc:creator>
      <dc:date>2013-10-25T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Oracle option from SAS SQL pass through facility.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120994#M33364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. Issue got resolved. We created the stored proc and call it from SAS sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 11:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Passing-Oracle-option-from-SAS-SQL-pass-through-facility/m-p/120994#M33364</guid>
      <dc:creator>mvskumar16</dc:creator>
      <dc:date>2013-10-25T11:57:14Z</dc:date>
    </item>
  </channel>
</rss>

