<?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 Problem with sas batch mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445647#M111699</link>
    <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;I have the following problem with sas batch mode:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;During program execution in batch mode if there is any error the rest of the program is not executed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;There is an option or trick to make the rest of the program &lt;SPAN class="short_text"&gt; executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Thank you very much for all your help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 21:58:23 GMT</pubDate>
    <dc:creator>makset7</dc:creator>
    <dc:date>2018-03-14T21:58:23Z</dc:date>
    <item>
      <title>Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445647#M111699</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;I have the following problem with sas batch mode:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;During program execution in batch mode if there is any error the rest of the program is not executed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;There is an option or trick to make the rest of the program &lt;SPAN class="short_text"&gt; executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Thank you very much for all your help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 21:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445647#M111699</guid>
      <dc:creator>makset7</dc:creator>
      <dc:date>2018-03-14T21:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445653#M111703</link>
      <description>&lt;P&gt;Look at these options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOERRORABEND Does not end SAS for most errors, issues an error message, sets OBS=0, and goes into syntax check mode.&lt;BR /&gt; NOERRORBYABEND Does not end a SAS program when an error occurs in BY-group processing, issues an error, and continues &lt;BR /&gt; processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I question why you would want this behaviour though.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 22:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445653#M111703</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-14T22:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445661#M111707</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51900"&gt;@makset7&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'd say that execution stops once an error has been encountered is a good thing. You'll enter into an undefined state after an error and if processing would continue then unexpected things could happen (i.e. overwriting a table with wrong data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want some process to execute after program failure (i.e. sending out an email alert) then consider using a scheduler where you then check the return code of the process and in case of failure have the scheduler trigger another program which sends out the email (or whatever else you want to do).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 07:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/445661#M111707</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-01-11T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789137#M252476</link>
      <description>&lt;P&gt;I had this problem and will try the solutions stated here. However I often use by group processing fitting models on each level (bootstrapping). These often fail in low sample sizes/events and I do wish to simply "run on". Interactive SAS does this but batch does not by default it seems. So I am comfortable with these errors (I capture convergence diagnostics from the sas procedure and filter out non-converging models later). It is best to do a try/catch I suppose but I do not know how, and anyway seems pointless since the base procedure is very happy to just "run on".&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 15:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789137#M252476</guid>
      <dc:creator>dandar</dc:creator>
      <dc:date>2022-01-09T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789165#M252484</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/360394"&gt;@dandar&lt;/a&gt;&amp;nbsp; - Most likely it is the SAS system option &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n014qbvh3po8w5n1qlqbzr22vtg0.htm" target="_blank" rel="noopener"&gt;SYNTAXCHECK&lt;/A&gt; you are encountering as it is switched on by default in batch mode. You can put this in a SAS OPTIONS statements to test if it gives you the behaviour you want. In your case you would use: OPTIONS NOSYNTAXCECK;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 19:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789165#M252484</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-01-09T19:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sas batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789177#M252488</link>
      <description>Thank you so much, I will give this a try. I thought I was going mad: interactive mode runs fine (with multiple by-processing errors) but batch mode fails. I'll report back.</description>
      <pubDate>Sun, 09 Jan 2022 22:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-sas-batch-mode/m-p/789177#M252488</guid>
      <dc:creator>dandar</dc:creator>
      <dc:date>2022-01-09T22:34:01Z</dc:date>
    </item>
  </channel>
</rss>

