<?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: Execute a Teradata Stored Procedure from SAS Data Itegration Studio and take the status of execu in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Execute-a-Teradata-Stored-Procedure-from-SAS-Data-Itegration/m-p/703628#M1046</link>
    <description>&lt;P&gt;Generally speaking, you cannot use EXECUTE if you want to feed the resukt back to the calling SAS session.&lt;/P&gt;
&lt;P&gt;You have to use the SELECT * FROM CONNECTION TO construct.&lt;/P&gt;
&lt;P&gt;But, this uses a query as a parmeter. And id understand TD SP correctly, the result is fed back to avariable, rather than a query result.&lt;/P&gt;
&lt;P&gt;So my guess is that this hard to accomplish OOTB.&lt;/P&gt;
&lt;P&gt;Workaround? - if you can store the status_var in a table, then query that in a seconf call using SELECT * FROM CONNECTION TO.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 13:55:21 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2020-12-04T13:55:21Z</dc:date>
    <item>
      <title>Execute a Teradata Stored Procedure from SAS Data Itegration Studio and take the status of execution</title>
      <link>https://communities.sas.com/t5/Developers/Execute-a-Teradata-Stored-Procedure-from-SAS-Data-Itegration/m-p/703603#M1045</link>
      <description>&lt;P&gt;Hello, I need to execute a Stored Procedure (SP) loaded in a Teradata Database. This Stored Procedure return the status of execution, and I need to take this status to determine the next steps in my workflow. I execute the SP using:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;execute (call bd.procedure_name(status_var));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Is there any way to take the value of 'Status_var'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beatriz&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Execute-a-Teradata-Stored-Procedure-from-SAS-Data-Itegration/m-p/703603#M1045</guid>
      <dc:creator>Triz</dc:creator>
      <dc:date>2020-12-04T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a Teradata Stored Procedure from SAS Data Itegration Studio and take the status of execu</title>
      <link>https://communities.sas.com/t5/Developers/Execute-a-Teradata-Stored-Procedure-from-SAS-Data-Itegration/m-p/703628#M1046</link>
      <description>&lt;P&gt;Generally speaking, you cannot use EXECUTE if you want to feed the resukt back to the calling SAS session.&lt;/P&gt;
&lt;P&gt;You have to use the SELECT * FROM CONNECTION TO construct.&lt;/P&gt;
&lt;P&gt;But, this uses a query as a parmeter. And id understand TD SP correctly, the result is fed back to avariable, rather than a query result.&lt;/P&gt;
&lt;P&gt;So my guess is that this hard to accomplish OOTB.&lt;/P&gt;
&lt;P&gt;Workaround? - if you can store the status_var in a table, then query that in a seconf call using SELECT * FROM CONNECTION TO.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Execute-a-Teradata-Stored-Procedure-from-SAS-Data-Itegration/m-p/703628#M1046</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-12-04T13:55:21Z</dc:date>
    </item>
  </channel>
</rss>

