<?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: Stop SAS EG project if error is encountered in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/541972#M149744</link>
    <description>&lt;P&gt;I never used it, but you can add conditions to every step in process flow, the build-in help has a chapter about "conditional processing".&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 12:02:27 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-03-11T12:02:27Z</dc:date>
    <item>
      <title>Stop SAS EG project if error is encountered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/541969#M149741</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have an SAS emailer, it should not sent any mails if there is NO Data | Error- any where in a project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have an&amp;nbsp; 4 Process flows in SAS EG and using Query Builders .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/541969#M149741</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-03-11T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS EG project if error is encountered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/541972#M149744</link>
      <description>&lt;P&gt;I never used it, but you can add conditions to every step in process flow, the build-in help has a chapter about "conditional processing".&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/541972#M149744</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-11T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS EG project if error is encountered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/543583#M150293</link>
      <description>&lt;P&gt;&amp;nbsp;have used another idea for skipping this "Stop SAS EG project if error is encountered"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my data set does not have any observations then it should not sent a mail alert with the message of&lt;/P&gt;&lt;P&gt;"No production happened on 15th MAR 2019"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By referring below links of sas.support&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not send email if error exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do not send email if no data&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sql send result count in macro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let day=%sysfunc(putn(%eval(%sysfunc(today())-1),date9.));&lt;BR /&gt;%put &amp;amp;day;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%MACRO record_check;&lt;BR /&gt;%local count cnt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(*) into :cnt from WORK.EMPData;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%if &amp;amp;cnt &amp;gt; 0 %then&lt;BR /&gt;%do;&lt;BR /&gt;filename outbox email /*"&amp;amp;Email."*/&lt;BR /&gt;to=('siva.kumar@SAShealth.com')&lt;BR /&gt;cc=('kumar.siva@SAShealth.com')&lt;BR /&gt;type='text/html'&lt;BR /&gt;subject='&lt;SPAN&gt;No production happened on &amp;amp;day&lt;/SPAN&gt;'&lt;BR /&gt;from="sas.test@SAShealth.com";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html body=outbox style=minimal rs=none;&lt;/P&gt;&lt;P&gt;data new;&lt;BR /&gt;set WORK.EMPData;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title HEIGHT=0.5cm color=black JUSTIFY=CENTER BOLD "Test Report";&lt;BR /&gt;title;&lt;BR /&gt;ods;&lt;BR /&gt;%end;&lt;BR /&gt;%MEND record_check;&lt;/P&gt;&lt;P&gt;%record_check;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 16:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-EG-project-if-error-is-encountered/m-p/543583#M150293</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-03-15T16:43:50Z</dc:date>
    </item>
  </channel>
</rss>

