<?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 in automatic chain - NOEXEC in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602298#M16807</link>
    <description>&lt;P&gt;&lt;EM&gt;"These chains call several SAS programs (via "include").&amp;nbsp;These chains&amp;nbsp;can call N programs that do not depend on each other."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;%include allows you to execute code stored in multiple files but the code gets still executed as one single program. There are syntax errors like unbalanced quotes or things like an abort statement in code from which you can't easily or not at all recover whatever "tricks" you use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would execute these programs each in their own environment then your problem would just go away. Options to do so:&lt;/P&gt;
&lt;P&gt;A) Use a scheduler and build flows (1 per chain). SAS Management Console allows you to do so.&lt;/P&gt;
&lt;P&gt;B) Use SAS/Connect (if licensed) and call your programs within rsubmit blocks&lt;/P&gt;
&lt;P&gt;C) Use an X command (or %sysexec) to issue OS level batch commands to run your programs (requires option XCMD set)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any of above 3 options will execute the programs independently from each other. All options also allow you to execute some or all of the programs in parallel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you execute everything together then it's not only about syntax errors but also that a previous program can change the environment for the next %included program - all the work tables, options changed, global macro variables created will still exist when the "2nd" program executes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 02:48:54 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-11-07T02:48:54Z</dc:date>
    <item>
      <title>Error in automatic chain - NOEXEC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602035#M16789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;We have SAS chains that are triggered automatically at different times.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;These chains call several SAS programs (via "include").&lt;/SPAN&gt; &lt;SPAN&gt;These chains &lt;/SPAN&gt;&lt;SPAN&gt;can call N programs that do not depend on each other.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Currently, if the N1 program contains errors then the rest of the chain doesn't execute correctly because : "PROC SQL set option NOEXEC and will continue to check the syntax of statements."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;We tried the EXEC and NOERRORSTOP options without success&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;We need the programs run correctly even if the previous one had an error. Can you help us, please ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602035#M16789</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2019-11-06T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automatic chain - NOEXEC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602052#M16792</link>
      <description>&lt;P&gt;So what type of errors are these? There are at least 20 system options related to different types of errors not to mention return codes set by procedures that can be used to conditionally do things&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data contains values that your program can't handle, such as missing variables or no values, or&amp;nbsp;missing/zero observation data sets&amp;nbsp;that is pretty much up to you to make sure the data is acceptable before dumping the data into a procedure. If the variable types are incorrect then you have an issue further back in your process that is allowing incorrect data types to be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602052#M16792</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-06T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automatic chain - NOEXEC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602290#M16806</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nosyntaxcheck;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is probably what you need:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n014qbvh3po8w5n1qlqbzr22vtg0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n014qbvh3po8w5n1qlqbzr22vtg0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYNTAXCHECK is the default setting for batch jobs.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 01:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602290#M16806</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-07T01:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automatic chain - NOEXEC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602298#M16807</link>
      <description>&lt;P&gt;&lt;EM&gt;"These chains call several SAS programs (via "include").&amp;nbsp;These chains&amp;nbsp;can call N programs that do not depend on each other."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;%include allows you to execute code stored in multiple files but the code gets still executed as one single program. There are syntax errors like unbalanced quotes or things like an abort statement in code from which you can't easily or not at all recover whatever "tricks" you use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would execute these programs each in their own environment then your problem would just go away. Options to do so:&lt;/P&gt;
&lt;P&gt;A) Use a scheduler and build flows (1 per chain). SAS Management Console allows you to do so.&lt;/P&gt;
&lt;P&gt;B) Use SAS/Connect (if licensed) and call your programs within rsubmit blocks&lt;/P&gt;
&lt;P&gt;C) Use an X command (or %sysexec) to issue OS level batch commands to run your programs (requires option XCMD set)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any of above 3 options will execute the programs independently from each other. All options also allow you to execute some or all of the programs in parallel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you execute everything together then it's not only about syntax errors but also that a previous program can change the environment for the next %included program - all the work tables, options changed, global macro variables created will still exist when the "2nd" program executes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 02:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602298#M16807</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-11-07T02:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automatic chain - NOEXEC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602353#M16812</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We tried the 'nosyntaxckeck' option&amp;nbsp;and it seems to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 10:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-automatic-chain-NOEXEC/m-p/602353#M16812</guid>
      <dc:creator>Charlotte37</dc:creator>
      <dc:date>2019-11-07T10:09:03Z</dc:date>
    </item>
  </channel>
</rss>

