<?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: Error terminate the Program but not SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-terminate-the-Program-but-not-SAS/m-p/14152#M2207</link>
    <description>Yep, same old gap in the sas toolbox.&lt;BR /&gt;
&lt;BR /&gt;
See &lt;A href="http://support.sas.com/kb/24/825.html" target="_blank"&gt;http://support.sas.com/kb/24/825.html&lt;/A&gt; for a dodgy workaround.</description>
    <pubDate>Mon, 03 May 2010 21:17:46 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2010-05-03T21:17:46Z</dc:date>
    <item>
      <title>Error terminate the Program but not SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-terminate-the-Program-but-not-SAS/m-p/14151#M2206</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using SAS/CONNECT to log on to our LInux machine.  I am using SAS 9.2.&lt;BR /&gt;
&lt;BR /&gt;
I have the following code after a signon attempt to the UNIX machine:&lt;BR /&gt;
&lt;BR /&gt;
	&lt;BR /&gt;
		**** Check the error conditon of the SIGNON command;&lt;BR /&gt;
		%macro checkit;&lt;BR /&gt;
			%if &amp;amp;syserr=0 %then %do;&lt;BR /&gt;
				%put SIGNON fine! Continue processing!;&lt;BR /&gt;
			%end;&lt;BR /&gt;
			%else %do; &lt;BR /&gt;
				%put &amp;gt;&amp;gt;&amp;gt;ERROR: SIGNON failed - RC=&amp;amp;syserr;&lt;BR /&gt;
				%put &amp;gt;&amp;gt;&amp;gt; Please check above for ERROR Description;&lt;BR /&gt;
				%ABORT;&lt;BR /&gt;
			%end;&lt;BR /&gt;
		%mend checkit;&lt;BR /&gt;
&lt;BR /&gt;
		%checkit;&lt;BR /&gt;
&lt;BR /&gt;
So what I want the program to do is to stop at the %ABORT, but not terminate SAS.&lt;BR /&gt;
&lt;BR /&gt;
There is more data steps after the checkit macro so when I type in a wrong password it prints out the ERROR that I have for the put statements, but it continues trying to do the rest of the data steps, etc.  If I put in ABORT ABEND it totally shuts down SAS.&lt;BR /&gt;
&lt;BR /&gt;
How do I print out the ERROR and abort but also keep my PC SAS up so I can view the log?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Nancy</description>
      <pubDate>Mon, 03 May 2010 15:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-terminate-the-Program-but-not-SAS/m-p/14151#M2206</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-05-03T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error terminate the Program but not SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-terminate-the-Program-but-not-SAS/m-p/14152#M2207</link>
      <description>Yep, same old gap in the sas toolbox.&lt;BR /&gt;
&lt;BR /&gt;
See &lt;A href="http://support.sas.com/kb/24/825.html" target="_blank"&gt;http://support.sas.com/kb/24/825.html&lt;/A&gt; for a dodgy workaround.</description>
      <pubDate>Mon, 03 May 2010 21:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-terminate-the-Program-but-not-SAS/m-p/14152#M2207</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2010-05-03T21:17:46Z</dc:date>
    </item>
  </channel>
</rss>

