<?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 Abort Stop in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151221#M39810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to stop all code from running if result is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I am creating data set with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today = date() -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am selecting MAX(date) from 2 diff sources, then combined all 3.&lt;/P&gt;&lt;P&gt;Last I am creating dataset like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to Abort or stop all code after this if source1 or source2 contain 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="2" cellspacing="2" height="255" style="width: 230px; height: 255px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24" width="76%"&gt;&lt;BR /&gt;&lt;P&gt;source 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="24" width="24%"&gt;&lt;BR /&gt;&lt;P&gt;source 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="24" width="76%"&gt;&lt;BR /&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD height="24" width="24%"&gt;&lt;BR /&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 18:31:27 GMT</pubDate>
    <dc:creator>fred_major</dc:creator>
    <dc:date>2014-09-18T18:31:27Z</dc:date>
    <item>
      <title>Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151221#M39810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to stop all code from running if result is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I am creating data set with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today = date() -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am selecting MAX(date) from 2 diff sources, then combined all 3.&lt;/P&gt;&lt;P&gt;Last I am creating dataset like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to Abort or stop all code after this if source1 or source2 contain 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="2" cellspacing="2" height="255" style="width: 230px; height: 255px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24" width="76%"&gt;&lt;BR /&gt;&lt;P&gt;source 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="24" width="24%"&gt;&lt;BR /&gt;&lt;P&gt;source 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="24" width="76%"&gt;&lt;BR /&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD height="24" width="24%"&gt;&lt;BR /&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151221#M39810</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2014-09-18T18:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151222#M39811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running this in EG or base SAS? Batch or interactive session?&lt;/P&gt;&lt;P&gt;Do you want to end the SAS session or provide diagnostics or some output to indicate this condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be as easy as (in the data step that combines the sources)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if source1=0 and source2=0 then abort(cancel);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151222#M39811</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-18T18:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151223#M39812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Base SAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to end session, below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;today;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;Today = date()-&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;Today= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 8pt;"&gt;date.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;temp_date &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;select&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'date'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date,(TODAY)&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;format &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 8pt;"&gt;yymmdd10.&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; today;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 8pt;"&gt;/* Max Date 1*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;exec&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;connect&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; sqlservr &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;Sstats (server= myserver1 database =mydatabase1); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;create &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; 1_maxdate &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; Date,MAXDATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; connection to sstats(&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'date'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date,MAX(date) &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;AS &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;MAXDATE &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; [dbo]&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;[t_1ReportData]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;disconnect&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;sStats; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 8pt;"&gt;/* Max Date 2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;exec&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;connect&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; sqlservr &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;Sstats (server= myserver2 database=mydatabase2); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;reate &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; 2_maxdate &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; Date,MAXDATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; connection to sstats(&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'date'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date,MAX(rpt_date) &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;AS &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;MAXDATE &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; [dbo]&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;[t_2ReportData]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt; disconnect&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;sStats; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;1_Maxdate &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; Date,DATEPART(MAXDATE)&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 8pt;"&gt;yymmdd10.&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;source1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; 1_Maxdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;2_Maxdate &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; Date,DATEPART(MAXDATE)&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 8pt;"&gt;yymmdd10.&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;source2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; 2_Maxdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; TEMP_DATE 1_MAXDATE 2_MAXDATE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; Update_Status(drop = Date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;update&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;temp (obs=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;) temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;by &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;table &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;Error_Checking &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; case &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;when &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;date = source1 &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; end &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;source1,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;when &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;date = source2 &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 8pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; end &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;source2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; Update_Status;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: red; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;ABORT BEFORE PROC MEANS IF ABOVE SOURCE1 OR SOURCE2 RETURN 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; /* Proc Means Results&amp;nbsp; */&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; Proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;Means &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;noprint&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; = results.myData(where =(date &amp;gt;= &amp;amp;fromdate and date &amp;lt;= &amp;amp;todate));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; CLASS&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date&amp;nbsp; My1 My2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; output&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=My&amp;nbsp;&amp;nbsp; Output &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="line-height: 115%; color: navy; font-size: 8pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;I attempted to add what you suggested to &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;Error_Checking but program continued on to process proc means.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;Thanks Fred&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151223#M39812</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2014-09-19T12:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151224#M39813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I am quite against the abort abend type stopping.&amp;nbsp; Just conditionally execute the proc means e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Error_Checking (obs=1); /* will only do the next code if data is present, and will only do it once max */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('&lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 8pt;"&gt;Proc&lt;/STRONG&gt; &lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 8pt;"&gt;Means &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;noprint&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; = results.myData(where =(date &amp;gt;= &amp;amp;fromdate and date &amp;lt;= &amp;amp;todate));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLASS&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date&amp;nbsp; My1 My2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=My&amp;nbsp;&amp;nbsp; Output &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="background: white; color: navy; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151224#M39813</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-19T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151225#M39814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I be required to add a conditional execute to ever other step after the Proc means, as there are many?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151225#M39814</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2014-09-19T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151226#M39815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you could, or you could put the actual code in another file or macro and then call that:&lt;/P&gt;&lt;P&gt;call execute('%include "real_code.sas";');&lt;/P&gt;&lt;P&gt;or call execute('%real_code();');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could of course do:&lt;/P&gt;&lt;P&gt;call execute('abort; abend;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as mentioned I don't really like programs terminating abnormally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151226#M39815</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-19T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151227#M39816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am missing something as this proc means still runs no matter if source1 or source2 contain 0, 1 or null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Error_Checking (obs=1); /* will only do the next code if data is present, and will only do it once max */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('&lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 8pt;"&gt;Proc&lt;/STRONG&gt; &lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 8pt;"&gt;Means &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;noprint&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; = results.myData(where =(date &amp;gt;= &amp;amp;fromdate and date &amp;lt;= &amp;amp;todate));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLASS&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt; date&amp;nbsp; My1 My2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=My&amp;nbsp;&amp;nbsp; Output &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="background: white; color: navy; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 8pt;"&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 14:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151227#M39816</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2014-09-19T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151228#M39817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you have&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: white; color: red; font-family: 'Courier New'; font-size: 8pt;"&gt;ABORT BEFORE PROC MEANS IF ABOVE SOURCE1 OR SOURCE2 RETURN 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Error_checking;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if source1=0 or source2=0 then abort(abend);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;should stop the SAS session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I did ask about environment as the behavior of Abort changes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 15:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151228#M39817</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-19T15:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151229#M39818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right RW9, terminating a program using abort/abend is a bad approach. &lt;BR /&gt;That ones should be used with care as last rescue for very serious issues. Within a server-based approach (eip baf) it could cause unforeseen issues causing more problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to code exceptions is by coding those exceptions.&lt;BR /&gt;Either by some macro-logic (common in DI generated code) or by some data step generating the additional code.&lt;/P&gt;&lt;P&gt;I have seen some questions that make sense, when the report is not wanted generate an other report that says the report was discarded.&lt;/P&gt;&lt;P&gt;That information that it is not there is also information example:&lt;/P&gt;&lt;P&gt;- this page was intentionally left blank= .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 15:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151229#M39818</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-19T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151230#M39819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this, with a little modification I got this to do what I wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;_null_ ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;Set &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;Error_Checking; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;source1&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;call &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;execute(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'Proc Means noprint data = results.MyData(where=(date &amp;gt;= &amp;amp;fromdate and date &amp;lt;= &amp;amp;todate));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt; CLASS date My1 My2;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;output out=My SUM=;RUN;'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 18:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151230#M39819</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2014-09-19T18:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Stop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151231#M39820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;endsas;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also can stop sas session .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 11:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Abort-Stop/m-p/151231#M39820</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-20T11:19:33Z</dc:date>
    </item>
  </channel>
</rss>

