<?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: How to stop a long SAS code in the middle? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271104#M53929</link>
    <description>Why do you have code that you don't want to execute?  &lt;BR /&gt;Are you executing interactively? &lt;BR /&gt;Consider splitting your program.&lt;BR /&gt;If you are an EG user there are means to group steps into different units,  like a process flow.</description>
    <pubDate>Tue, 17 May 2016 20:42:57 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-05-17T20:42:57Z</dc:date>
    <item>
      <title>How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271064#M53919</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a 1000 rows of&amp;nbsp;SAS code they are around 30&amp;nbsp;data steps. if I want the SAS code stop executing &amp;nbsp;only after first 10 data steps&amp;nbsp; finish running.&amp;nbsp;how to do that? I don't want to use 'endsas' command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 18:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271064#M53919</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2016-05-17T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271077#M53921</link>
      <description>&lt;P&gt;One common method is to define the steps that you don't want to run as being a macro.&amp;nbsp; For example, after the 10 steps that you want to run, insert this line of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro SkipThis;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then at the end of the program insert this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend SkipThis;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will define the 20 steps that you want to skip as the contents of a macro, but the program never executes the macro so the steps never run.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 19:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271077#M53921</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-17T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271103#M53928</link>
      <description>&lt;P&gt;Another way is to select the steps you want to run using your mouse and press F3 / F8 to run the selection.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 20:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271103#M53928</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-05-17T20:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271104#M53929</link>
      <description>Why do you have code that you don't want to execute?  &lt;BR /&gt;Are you executing interactively? &lt;BR /&gt;Consider splitting your program.&lt;BR /&gt;If you are an EG user there are means to group steps into different units,  like a process flow.</description>
      <pubDate>Tue, 17 May 2016 20:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271104#M53929</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-17T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271130#M53934</link>
      <description>&lt;P&gt;If you use the SAS Windowing environment, you can use this command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;subtop 19&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(it will submit the top 19 lines of code)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 21:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271130#M53934</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2016-05-17T21:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop a long SAS code in the middle?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271131#M53935</link>
      <description>&lt;P&gt;Yet another way COMMENTs and %include.&lt;/P&gt;
&lt;P&gt;Put the code that you don't want to run into a separate program file. Then put an %include statement within comments so that it doesn't run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;
&lt;P&gt;/* comment not to run this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include "path/myothercode.sas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;end comment */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you want to run the code in the %include the Highlight that line and submit it. But if the whole program file is run the bit in the %include won't run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 22:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-a-long-SAS-code-in-the-middle/m-p/271131#M53935</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-17T22:16:04Z</dc:date>
    </item>
  </channel>
</rss>

