<?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: Statements not executed due to NOEXEC option in batch jobs in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508793#M14826</link>
    <description>&lt;P&gt;What is it your trying to achieve here, trying to run a query if errors exists is not a recommended way. Invoke your query based on the condition that fails the query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;My below query fails to execute if macro variable values is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
select * from sashelp.class
where Age=&amp;amp;Age
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can conditionally run this query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro run_Query();
proc sql ;
select * from sashelp.class
where Age=&amp;amp;Age
;
quit;
%Mend;

%macro isBlank();
 %IF   %sysevalf(%superq(Age)=,boolean) %then %return;
%else %run_Query();
%mend isBlank; 
%ISBLANK();

%symdel age/nowarn;
%ISBLANK();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Oct 2018 16:13:37 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-10-30T16:13:37Z</dc:date>
    <item>
      <title>Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508751#M14818</link>
      <description>We are facing issue in proc sql below error in batch jobs.&lt;BR /&gt;Statements not executed due to NOEXEC option.&lt;BR /&gt;The SAS systems stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;Is there need to change options in sasbatch.sh or workspace.sh as we are currently migrated to SAS 9.3 to SAS 9.4</description>
      <pubDate>Tue, 30 Oct 2018 15:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508751#M14818</guid>
      <dc:creator>SwagatPatil</dc:creator>
      <dc:date>2018-10-30T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508756#M14819</link>
      <description>&lt;P&gt;I think this is something to do with the code and not any options or something else. Your SQL query might have syntax error or NOEXEC option is set in PROC SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24488i49D60F7B795FA6F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remove NOEXEC if present.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noexec;
select * from sashelp.class
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 538px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24489i7AF278591DFF5A86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508756#M14819</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-30T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508757#M14820</link>
      <description>&lt;PRE&gt;Statements not executed due to NOEXEC option&lt;/PRE&gt;
&lt;P&gt;is a typical consequence of an ERROR that has sent SAS into syntax check mode (the syntax is verified, but nothing is executed).&lt;/P&gt;
&lt;P&gt;Read the log from top down and fix ERRORs/WARNINGs one by one.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508757#M14820</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-30T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508767#M14822</link>
      <description>I need the second step need to execute if first proc has errors.&lt;BR /&gt;I have some control tables that should be update if any error occurs. But if error occurs then next procedures are not executed thats why my control table is not getting updated</description>
      <pubDate>Tue, 30 Oct 2018 15:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508767#M14822</guid>
      <dc:creator>SwagatPatil</dc:creator>
      <dc:date>2018-10-30T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508793#M14826</link>
      <description>&lt;P&gt;What is it your trying to achieve here, trying to run a query if errors exists is not a recommended way. Invoke your query based on the condition that fails the query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;My below query fails to execute if macro variable values is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
select * from sashelp.class
where Age=&amp;amp;Age
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can conditionally run this query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro run_Query();
proc sql ;
select * from sashelp.class
where Age=&amp;amp;Age
;
quit;
%Mend;

%macro isBlank();
 %IF   %sysevalf(%superq(Age)=,boolean) %then %return;
%else %run_Query();
%mend isBlank; 
%ISBLANK();

%symdel age/nowarn;
%ISBLANK();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508793#M14826</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-30T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508831#M14829</link>
      <description>I need to capture the error , then my control table should some values that indicates my job completed with errors. So it needs to be run below steps to update the control table.</description>
      <pubDate>Tue, 30 Oct 2018 17:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508831#M14829</guid>
      <dc:creator>SwagatPatil</dc:creator>
      <dc:date>2018-10-30T17:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Statements not executed due to NOEXEC option in batch jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508833#M14830</link>
      <description>&lt;P&gt;Might be this is what your looking for&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#base-sysop-syntaxcheck.htm&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#base-sysop-syntaxcheck.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Statements-not-executed-due-to-NOEXEC-option-in-batch-jobs/m-p/508833#M14830</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-30T17:35:31Z</dc:date>
    </item>
  </channel>
</rss>

