<?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: %include in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269658#M18677</link>
    <description>&lt;P&gt;&lt;SPAN&gt;It ignores &lt;SPAN&gt;in that&amp;nbsp;sense &lt;/SPAN&gt;&lt;SPAN&gt;I&lt;/SPAN&gt; don't want&lt;/SPAN&gt; &lt;SPAN&gt;to&lt;/SPAN&gt; &lt;SPAN&gt;stop&lt;/SPAN&gt; &lt;SPAN&gt;SAS&lt;/SPAN&gt;&lt;SPAN&gt;, because&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;NOTE: Statements not processed because of errors noted above.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;%include generic_query.sas&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All errors are important to me, but I need to&amp;nbsp;SAS executed the&amp;nbsp;%include function because I&amp;nbsp;check in a&amp;nbsp;separatly file .sas if someting went wrong and send the e-mail about that.&lt;/P&gt;&lt;P&gt;I need to have the separately file because in another files I assign macros for that generic query.sas and if something went wrong before the %include&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P&gt;and I don't have&amp;nbsp;an e-mail&amp;nbsp;with the&amp;nbsp;information about that, because&amp;nbsp;this part is&amp;nbsp;in %include.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 08:25:22 GMT</pubDate>
    <dc:creator>aola</dc:creator>
    <dc:date>2016-05-11T08:25:22Z</dc:date>
    <item>
      <title>%include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269646#M18674</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have&amp;nbsp;the part of &amp;nbsp;log:&lt;/P&gt;&lt;P&gt;23 proc append BASE=a.ID;&lt;BR /&gt;sasxdbi: dbicon: special image for SAS/Poland&lt;BR /&gt;23 ! DATA=LOAD. FORCE;&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;24 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;25 %include "/usr/local/generic.sas";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Statements not processed because of errors noted above.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.&lt;BR /&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 1.20 seconds&lt;BR /&gt;cpu time 0.07 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I ignore errors to execute rest of the code? Especially %include function where I have the code:&lt;/P&gt;&lt;P&gt;filename myfile email&lt;BR /&gt;to=&amp;amp;e_mail.&lt;BR /&gt;subject= "Error"&lt;BR /&gt;type="text/plain";&lt;/P&gt;&lt;P&gt;%macro errmail;&lt;BR /&gt;%if &amp;amp;syserr ne 0 %then %do;&lt;BR /&gt;data _null_;&lt;BR /&gt;file myfile;&lt;BR /&gt;put;&lt;BR /&gt;put 'ERROR';&lt;BR /&gt;put "&amp;amp;syserrortext";&lt;BR /&gt;put;&lt;BR /&gt;put "Log: \\logs" ;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend errmail;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%errmail&lt;BR /&gt;&lt;BR /&gt;and if the error is before the %include function I don't get an e-mail then.&lt;BR /&gt;I want to get the information about the error no matter where is, so sas supposed to ignore errors and goes ahead and finally send me an e-mail if something went wrong.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is it a good way?&lt;BR /&gt;options obs=max replace nosyntaxcheck;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 07:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269646#M18674</guid>
      <dc:creator>aola</dc:creator>
      <dc:date>2016-05-11T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269651#M18675</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may use &lt;STRONG&gt;options=errorabend&lt;/STRONG&gt; in order for sas to stop when it encounters an error. Afterwards you may run another program which scan the log and sends an email if it has an error.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 07:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269651#M18675</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-05-11T07:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269653#M18676</link>
      <description>&lt;P&gt;Why on earth would you want to ignore warnings or errors? &amp;nbsp;They are there telling you that there is problems in your code which if not fixed could produce unwanted or no results. &amp;nbsp;They are the best indication that you need to fix your code. &amp;nbsp;Any validation/qc I can think of would fail code automatically at the first error or warning (notes would as well possibly).&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269653#M18676</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-11T08:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269658#M18677</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It ignores &lt;SPAN&gt;in that&amp;nbsp;sense &lt;/SPAN&gt;&lt;SPAN&gt;I&lt;/SPAN&gt; don't want&lt;/SPAN&gt; &lt;SPAN&gt;to&lt;/SPAN&gt; &lt;SPAN&gt;stop&lt;/SPAN&gt; &lt;SPAN&gt;SAS&lt;/SPAN&gt;&lt;SPAN&gt;, because&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;NOTE: Statements not processed because of errors noted above.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;%include generic_query.sas&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All errors are important to me, but I need to&amp;nbsp;SAS executed the&amp;nbsp;%include function because I&amp;nbsp;check in a&amp;nbsp;separatly file .sas if someting went wrong and send the e-mail about that.&lt;/P&gt;&lt;P&gt;I need to have the separately file because in another files I assign macros for that generic query.sas and if something went wrong before the %include&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P&gt;and I don't have&amp;nbsp;an e-mail&amp;nbsp;with the&amp;nbsp;information about that, because&amp;nbsp;this part is&amp;nbsp;in %include.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269658#M18677</guid>
      <dc:creator>aola</dc:creator>
      <dc:date>2016-05-11T08:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269660#M18678</link>
      <description>&lt;P&gt;Sounds to me like the whole process is a bit shaky. &amp;nbsp;I would look at the whole process from the documentation level. &amp;nbsp;Block each part out, maybe create a process flow, show where checking need to be done - checking should occur in any process and be done before errors occur, not after. &amp;nbsp;So something like: do step - are all things created, ok then move onto step 2...&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269660#M18678</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-11T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269701#M18681</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72630"&gt;@aola﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your log excerpt suggests that there is no RUN statement between the erroneous PROC APPEND code and the %INCLUDE statement. I think, the %INCLUDE would work if you completed&amp;nbsp;the PROC step with a RUN statement.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 12:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/269701#M18681</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-11T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: %include</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/270273#M18742</link>
      <description>&lt;P&gt;This was an example for error&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 06:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/include/m-p/270273#M18742</guid>
      <dc:creator>aola</dc:creator>
      <dc:date>2016-05-13T06:46:47Z</dc:date>
    </item>
  </channel>
</rss>

