<?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>Question Re: Needs to continue execution after Execute statement in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/needs-to-continue-execution-after-execute-statement/qaa-p/13847503#M4878346</link>
    <description>&lt;P&gt;If you execute a SELECT statement without an INTO in a procedure as you have done, it is a result set that is returned from the procedure. The caller of the procedure should fetch the rows and then execute a RESUME statement to allow execution to continue to the next result set, if there is one, or to the end of the procedure otherwise.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/resume-statement.html*d5e64379"&gt;http://dcx.sybase.com/index.html#sa160/en/dbreference/resume-statement.html*d5e64379&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2013 16:46:21 GMT</pubDate>
    <dc:creator>johnsmirnios</dc:creator>
    <dc:date>2013-03-15T16:46:21Z</dc:date>
    <item>
      <title>Needs to continue execution after Execute statement</title>
      <link>https://community.sap.com/t5/technology-q-a/needs-to-continue-execution-after-execute-statement/qaq-p/13847502</link>
      <description>&lt;P&gt;Hello All,
I am in trouble.
Issue is after execute statement in procedure i want to do some more things in procedure.
But the problem is after executing "Execute" statement, It is not executing other codes after that line.&lt;/P&gt;
&lt;P&gt;Ex.
CREATE PROCEDURE "DBA"."SP_Test11" (as_text VARCHAR(2000))&lt;/P&gt;
&lt;P&gt;BEGIN&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;declare&lt;/SPAN&gt; &lt;SPAN class="n"&gt;remote_id&lt;/SPAN&gt;   &lt;SPAN class="n"&gt;varchar&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;128&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;Execute&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;as_text&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;SET&lt;/SPAN&gt; &lt;SPAN class="n"&gt;remote_id&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'10'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;END;&lt;/P&gt;
&lt;P&gt;I am passing as_text as "Select * from test"...&lt;/P&gt;
&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 16:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/needs-to-continue-execution-after-execute-statement/qaq-p/13847502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to continue execution after Execute statement</title>
      <link>https://community.sap.com/t5/technology-q-a/needs-to-continue-execution-after-execute-statement/qaa-p/13847503#M4878346</link>
      <description>&lt;P&gt;If you execute a SELECT statement without an INTO in a procedure as you have done, it is a result set that is returned from the procedure. The caller of the procedure should fetch the rows and then execute a RESUME statement to allow execution to continue to the next result set, if there is one, or to the end of the procedure otherwise.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbreference/resume-statement.html*d5e64379"&gt;http://dcx.sybase.com/index.html#sa160/en/dbreference/resume-statement.html*d5e64379&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 16:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/needs-to-continue-execution-after-execute-statement/qaa-p/13847503#M4878346</guid>
      <dc:creator>johnsmirnios</dc:creator>
      <dc:date>2013-03-15T16:46:21Z</dc:date>
    </item>
  </channel>
</rss>

