<?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 In PC SAS 9.4, how to leave the rest of code not to be executed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282956#M57583</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know &lt;U&gt;&lt;STRONG&gt;"ENDSAS"&lt;/STRONG&gt;&lt;/U&gt; can stop and exit SAS immedietely. &lt;STRONG&gt;but&lt;/STRONG&gt; I don't want SAS &lt;STRONG&gt;exit&lt;/STRONG&gt;,I just want it stop execute the rest code.&lt;/P&gt;
&lt;P&gt;Is there any other function&amp;nbsp;code I can use&amp;nbsp;during the code line&amp;nbsp;to stop execute the rest lines of codes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 13:29:30 GMT</pubDate>
    <dc:creator>GeorgeSAS</dc:creator>
    <dc:date>2016-07-08T13:29:30Z</dc:date>
    <item>
      <title>In PC SAS 9.4, how to leave the rest of code not to be executed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282956#M57583</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know &lt;U&gt;&lt;STRONG&gt;"ENDSAS"&lt;/STRONG&gt;&lt;/U&gt; can stop and exit SAS immedietely. &lt;STRONG&gt;but&lt;/STRONG&gt; I don't want SAS &lt;STRONG&gt;exit&lt;/STRONG&gt;,I just want it stop execute the rest code.&lt;/P&gt;
&lt;P&gt;Is there any other function&amp;nbsp;code I can use&amp;nbsp;during the code line&amp;nbsp;to stop execute the rest lines of codes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 13:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282956#M57583</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2016-07-08T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: In PC SAS 9.4, how to leave the rest of code not to be executed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282964#M57584</link>
      <description>&lt;P&gt;You can turn on syntax check mode. SAS will still go over your code but not execute anything (apart from data_null_ steps). Look at the options SYNTAXCHECK and DMSSYNCHK. Consider adding NOREPLACE and OBS=0 to be safe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 13:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282964#M57584</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-07-08T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: In PC SAS 9.4, how to leave the rest of code not to be executed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282973#M57591</link>
      <description>&lt;P&gt;In a datastep you can conditionally use the STOP to halt the step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If &amp;lt;condition&amp;gt; then stop;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 14:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/282973#M57591</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-08T14:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: In PC SAS 9.4, how to leave the rest of code not to be executed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/283111#M57656</link>
      <description>&lt;PRE&gt;
I would add  /*  between two type of code .
E.X.

data x;
 ....
run;
proc print;

/*

proc print;





And you will find only the code before /* be executed .


&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Jul 2016 04:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-PC-SAS-9-4-how-to-leave-the-rest-of-code-not-to-be-executed/m-p/283111#M57656</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-09T04:21:47Z</dc:date>
    </item>
  </channel>
</rss>

