<?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 Any way we can capture number of rows that was updated in update statement results log? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144199#M28760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a inner loop which has a series Update statements which I need to loop it until update statement results from step N-1 is equal to one from Step N. Then I have to go back to outer loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the inner loop syntax would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do J = 1 %to 200;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a series update statements...&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if (update statement results from step J) &amp;lt;&amp;gt;(update statement results from step J-1) %then %goto leave_inner;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* (in other words, if 1 row was updated in WORK.DATA from Step J-1 but&amp;nbsp; 0 row was updated in WORK.DATA from StepJ, then we use %goto to leave the inner loop)*/&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %leave_inner: /* leave inner loop to outer loop*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is a way to capture just the number of rows that was updated in update statement results log and then put it into a macro, that would solve my problem as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 13:24:36 GMT</pubDate>
    <dc:creator>jay_q</dc:creator>
    <dc:date>2014-03-14T13:24:36Z</dc:date>
    <item>
      <title>Any way we can capture number of rows that was updated in update statement results log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144199#M28760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a inner loop which has a series Update statements which I need to loop it until update statement results from step N-1 is equal to one from Step N. Then I have to go back to outer loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the inner loop syntax would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do J = 1 %to 200;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a series update statements...&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if (update statement results from step J) &amp;lt;&amp;gt;(update statement results from step J-1) %then %goto leave_inner;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* (in other words, if 1 row was updated in WORK.DATA from Step J-1 but&amp;nbsp; 0 row was updated in WORK.DATA from StepJ, then we use %goto to leave the inner loop)*/&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %leave_inner: /* leave inner loop to outer loop*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is a way to capture just the number of rows that was updated in update statement results log and then put it into a macro, that would solve my problem as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144199#M28760</guid>
      <dc:creator>jay_q</dc:creator>
      <dc:date>2014-03-14T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Any way we can capture number of rows that was updated in update statement results log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144200#M28761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that "update statements" refer to SQL UPDATE statements, you could get the number of records updated (not necessarily changed) after each query from the SQLOBS automatic macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144200#M28761</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-14T17:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Any way we can capture number of rows that was updated in update statement results log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144201#M28762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tested and works! Thank you. PGStars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 18:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-way-we-can-capture-number-of-rows-that-was-updated-in-update/m-p/144201#M28762</guid>
      <dc:creator>jay_q</dc:creator>
      <dc:date>2014-03-14T18:08:58Z</dc:date>
    </item>
  </channel>
</rss>

