<?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 stop running a SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847247#M334982</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;I have a set of sas programs that run in sequence. The users run them through another program containing -&lt;/P&gt;
&lt;P&gt;%incllude "/path/program1.sas"; %incllude "/path/program2.sas"; etc.&lt;/P&gt;
&lt;P&gt;In some of the programs I need to be able to stop that program and all following programs from running, based on an if statement (e.g., when a variable is above a certain limit). How can that be done? Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 13:45:52 GMT</pubDate>
    <dc:creator>Taliah</dc:creator>
    <dc:date>2022-12-01T13:45:52Z</dc:date>
    <item>
      <title>stop running a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847247#M334982</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;I have a set of sas programs that run in sequence. The users run them through another program containing -&lt;/P&gt;
&lt;P&gt;%incllude "/path/program1.sas"; %incllude "/path/program2.sas"; etc.&lt;/P&gt;
&lt;P&gt;In some of the programs I need to be able to stop that program and all following programs from running, based on an if statement (e.g., when a variable is above a certain limit). How can that be done? Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847247#M334982</guid>
      <dc:creator>Taliah</dc:creator>
      <dc:date>2022-12-01T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: stop running a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847278#M334997</link>
      <description>&lt;P&gt;Is the "value" in a data set or a macro variable? Is the IF going to be in data step code or for macro variables between procedures/data steps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the jobs run interactively or in batch?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ABORT statement in a data step is conditional (can be run on a value encountered) and has options ABEND (halts SAS), Cancel and Return. Each behaves a bit differently depending on run environment, interactive or batch and possibly if encountered in an %include file. You can also set a condition code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847278#M334997</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-01T16:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: stop running a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847288#M334999</link>
      <description>&lt;P&gt;Thank you. The value is a macro variable. The jobs are run in batch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;You can also set a condition code." - what do you mean by that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Is the IF going to be in data step code or for macro variables between procedures/data steps?"&amp;nbsp;I can set the if statement any way that will work. I compute the value of the macro variable, based on it I will need to stop the programs from running. Now I have that macro variable. I can write an IF statement in a data step, or another way if that will work better.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stop-running-a-SAS-program/m-p/847288#M334999</guid>
      <dc:creator>Taliah</dc:creator>
      <dc:date>2022-12-01T16:59:35Z</dc:date>
    </item>
  </channel>
</rss>

