<?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: Automated jobs failing because SAS logs contains Warning messages. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544159#M150482</link>
    <description>&lt;P&gt;You can use the SAS option NOQUOTELENMAX to suppress this warning:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n1j7a6mgalhqo5n11kv0vbpbx277.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n1j7a6mgalhqo5n11kv0vbpbx277.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;But you've missed off a semicolon so that is why you are getting it. Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let  abc = abc | def | ghij|;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2019 06:39:14 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-03-19T06:39:14Z</dc:date>
    <item>
      <title>Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542823#M150017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to suppress the warning messages, from the SAS logs for the completion of Auto-sys jobs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got to know that we can wrap the code, and then suppress the logs. as i am not sure of the wrapping of SAS code.&lt;/P&gt;&lt;P&gt;Do we have any options to suppress the Warning messages from the logs or if any of the experts on the board give me an example or any article related to wrap a SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santtosh...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542823#M150017</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2019-03-13T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542825#M150019</link>
      <description>&lt;P&gt;Since WARNINGS often indicate bad data, inappropriate options for data/procedure combinations or possibly unreliable results I would be &lt;STRONG&gt;very&lt;/STRONG&gt; cautious about automatically suppressing everything from the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share some examples of the types of warnings you are encountering? I would spend some more time making sure that my code wouldn't generate the warnings in the first place.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542825#M150019</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-13T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542826#M150020</link>
      <description>&lt;P&gt;Warnings are there for a reason, ignoring them is not a good idea, hiding them is an even worse idea.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542826#M150020</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-13T15:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542873#M150053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183704"&gt;@Santt0sh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A warning in SAS is is something that causes the automatic variable SYSCC to be set to the value 4. It also gives a message in the SAS log, but the message is just a green text that explains the warning, it has nothing to do with job completion. You can - at your own peril - redirect the log and get rid of the message, but your job will still end with a return code 4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, warnings in production jobs should not be accepted. There are special cases, e.g. when reading XML input using a map/XML filename, and content is longer than 32676 bytes, where a warning seems unavoidable, and in these cases the warning can be nullified by resetting SYSCC to 0, but then there is no reason to suppress the message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step with warning - gives message + return code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	b = "&amp;amp;y";
run;
%put &amp;amp;=syscc;&lt;/CODE&gt;&lt;/PRE&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;PRE&gt;121  data _null_;
122      b = "&amp;amp;y";
WARNING: Apparent symbolic reference Y not resolved.
123  run;

NOTE: There were 1 observations read from the data set WORK.A.
NOTE: The data set WORK.B has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds


124  %put &amp;amp;=syscc;
SYSCC=4
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step with warning and redirected log&amp;nbsp; - no message, but return code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename tmp dummy;
proc printto log=tmp;
run;
data _null_;
	b = "&amp;amp;y";
run;
proc printto;
run;
%put &amp;amp;=syscc;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;138  filename tmp dummy;
139  proc printto log=tmp;
140  run;

NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


146  %put &amp;amp;=syscc;
SYSCC=4
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step with warning and reset of return code - gives message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	b = "&amp;amp;y";
run;
%put &amp;amp;=syscc;
%if &amp;amp;syscc=4 %then %do;
	%let syscc = 0;
%end;
%put &amp;amp;=syscc;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;148  data _null_;
149      b = "&amp;amp;y";
WARNING: Apparent symbolic reference Y not resolved.
150  run;

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


151  %put &amp;amp;=syscc;
SYSCC=4
152  %if &amp;amp;syscc=4 %then %do;
153      %let syscc = 0;
154  %end;
155  %put &amp;amp;=syscc;
SYSCC=0
&lt;/PRE&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>Wed, 13 Mar 2019 16:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/542873#M150053</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-03-13T16:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544125#M150467</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried and removed the warning messages, but i am still getting a Warning message:&lt;/P&gt;&lt;P&gt;I am only trying to resolve a macro variable which is Pipe delimited&lt;/P&gt;&lt;P&gt;%let&amp;nbsp; abc = abc | def | ghij|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Snippet of the code i m using to resolve the delimited macro variables.&lt;/P&gt;&lt;P&gt;%Do i = 1 %to %sysfunc(countw(&amp;amp;abc.,%str(|)));&lt;/P&gt;&lt;P&gt;%let finals = %scan(&amp;amp;abc.,&amp;amp;i.,%str(|));&lt;/P&gt;&lt;P&gt;%put &amp;amp;finals.&lt;/P&gt;&lt;P&gt;the finals macro resolves but when its been used i am getting the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation mark.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have double checked my code i don't see any unbalanced quotation marks. if any one can give me an example to wrap this Warning and get autosys jobs successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 18 Mar 2019 23:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544125#M150467</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2019-03-18T23:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544159#M150482</link>
      <description>&lt;P&gt;You can use the SAS option NOQUOTELENMAX to suppress this warning:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n1j7a6mgalhqo5n11kv0vbpbx277.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n1j7a6mgalhqo5n11kv0vbpbx277.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;But you've missed off a semicolon so that is why you are getting it. Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let  abc = abc | def | ghij|;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 06:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544159#M150482</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-03-19T06:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Automated jobs failing because SAS logs contains Warning messages.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544209#M150490</link>
      <description>Hi Expert,&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestions, I will try the option given.&lt;BR /&gt;I don’t think I have missed any of the ;’sand the macro variable is created from a variable in sas dataset.&lt;BR /&gt;Anyhow I will check for the missing semi colon before I use the options&lt;BR /&gt;&lt;BR /&gt;Thanks you!!!</description>
      <pubDate>Tue, 19 Mar 2019 11:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automated-jobs-failing-because-SAS-logs-contains-Warning/m-p/544209#M150490</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2019-03-19T11:27:55Z</dc:date>
    </item>
  </channel>
</rss>

