<?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: To end a job within a macro / Terminer un job dans une macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23241#M3834</link>
    <description>Hi:&lt;BR /&gt;
  In part, this depends on the design of your SAS macro program and how you are executing the macro program. It also depends on what you mean by a "job" -- do you mean a single step program, a multi-step program or do you mean that you want to interrupt or stop a DATA step program in mid-stream??? You could also be using SAS DI Studio and want to conditionally execute a stored process that has been turned into a DI Studio job.&lt;BR /&gt;
&lt;BR /&gt;
  Without more information, it is hard to make specific recommendations. However, some good examples can be found here and they should at least point you in the right direction:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/Proceedings/nesug09/cc/cc23.pdf" target="_blank"&gt;http://www.nesug.org/Proceedings/nesug09/cc/cc23.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p074-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p074-26.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/154-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/154-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/021-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/021-30.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 17 May 2010 17:28:10 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-05-17T17:28:10Z</dc:date>
    <item>
      <title>To end a job within a macro / Terminer un job dans une macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23240#M3833</link>
      <description>I would like to add in a macro that the job ends if the value of a macro variable is equal to something and that it goes on if not.&lt;BR /&gt;
What is the code for telling the job to end ?&lt;BR /&gt;
&lt;BR /&gt;
Quel est le code pour interrompre un job dans une macro ?</description>
      <pubDate>Mon, 17 May 2010 16:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23240#M3833</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-17T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: To end a job within a macro / Terminer un job dans une macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23241#M3834</link>
      <description>Hi:&lt;BR /&gt;
  In part, this depends on the design of your SAS macro program and how you are executing the macro program. It also depends on what you mean by a "job" -- do you mean a single step program, a multi-step program or do you mean that you want to interrupt or stop a DATA step program in mid-stream??? You could also be using SAS DI Studio and want to conditionally execute a stored process that has been turned into a DI Studio job.&lt;BR /&gt;
&lt;BR /&gt;
  Without more information, it is hard to make specific recommendations. However, some good examples can be found here and they should at least point you in the right direction:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/Proceedings/nesug09/cc/cc23.pdf" target="_blank"&gt;http://www.nesug.org/Proceedings/nesug09/cc/cc23.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p074-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p074-26.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/154-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/154-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/021-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/021-30.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 17 May 2010 17:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23241#M3834</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-17T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: To end a job within a macro / Terminer un job dans une macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23242#M3835</link>
      <description>In SAS9 the %ABORT statement has similar capabilities to the DATA step's ABORT statement.  It is executable so it can be used with an %IF.&lt;BR /&gt;
&lt;BR /&gt;
Different combinations of %ABORT and its options perform differently depending on the OS and the operating environment. Experiment.</description>
      <pubDate>Tue, 18 May 2010 06:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-end-a-job-within-a-macro-Terminer-un-job-dans-une-macro/m-p/23242#M3835</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-05-18T06:15:26Z</dc:date>
    </item>
  </channel>
</rss>

