<?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 stored procedure in SAS DI in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95558#M290259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much that worked.&lt;/P&gt;&lt;P&gt;As I'm new to working with SAS and training is in the future.&lt;/P&gt;&lt;P&gt;I was trying to understand why a library would not work in this case and a pass through was needed but I believe I understand at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 17:24:00 GMT</pubDate>
    <dc:creator>jdmarshg</dc:creator>
    <dc:date>2013-10-02T17:24:00Z</dc:date>
    <item>
      <title>calling stored procedure in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95556#M290257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does one go about calling a stored procedure in SQL Server... ?&lt;/P&gt;&lt;P&gt;I have tried many different variations of a proc sql statement. &lt;/P&gt;&lt;P&gt;I place this code within the precode of the SAS DI task. &lt;/P&gt;&lt;P&gt;I'm able to use the same proc sql statements to select from the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXECUTE (exec libref.storeprocname);&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;Any suggestions and or guidance would be greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 01:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95556#M290257</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2013-09-27T01:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: calling stored procedure in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95557#M290258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your EXECUTE code work OK outside of SAS DIS just in a normal SAS program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect to see something like this. Your connection string may vary. This one is based on connecting via an ODBC driver using Windows Authentification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;Proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp; connect to MYSQL(noprompt = &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: purple; font-size: 9pt;"&gt;"server=MySQLServer;DRIVER=SQL Server;Trusted Connection=yes;DATABASE=MyDatabase;"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;execute ( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;EXEC&amp;nbsp;&amp;nbsp;&amp;nbsp; @return_value = MySchema.MyProcedure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) by MYSQL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 9pt;"&gt;Quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 02:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95557#M290258</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-09-27T02:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: calling stored procedure in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95558#M290259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much that worked.&lt;/P&gt;&lt;P&gt;As I'm new to working with SAS and training is in the future.&lt;/P&gt;&lt;P&gt;I was trying to understand why a library would not work in this case and a pass through was needed but I believe I understand at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 17:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95558#M290259</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2013-10-02T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: calling stored procedure in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95559#M290260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I go about passing macro variables into the stored procedure? &lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 20:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/95559#M290260</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2014-09-04T20:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: calling stored procedure in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/231282#M290261</link>
      <description>How do I capture the stored procedure values into SAS Macro Variable.  I'd like to create a SAS Macro Variable and persist through the DI Job ?</description>
      <pubDate>Thu, 22 Oct 2015 23:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-stored-procedure-in-SAS-DI/m-p/231282#M290261</guid>
      <dc:creator>SAS_1001</dc:creator>
      <dc:date>2015-10-22T23:52:05Z</dc:date>
    </item>
  </channel>
</rss>

