<?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: Avoid ERROR: Errors Printed On Page message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44065#M9020</link>
    <description>Hi Tim,&lt;BR /&gt;
I know the cause and reason of the errors and they are being treated in my job. &lt;BR /&gt;
&lt;BR /&gt;
I have a try/lock macro trying to lock a SAS dataset. At the beginning of the macro, I redirect the log output so that the errors produced when trying to lock the dataset are discarded. Although in the log that aren't any ERROR messages, the final line is the message "ERROR: Errors printed on pages...", even though those pages don't even exist in the log file.&lt;BR /&gt;
&lt;BR /&gt;
After the job finishes, I look in the log for the word "ERROR:" and it finds the statement above, ending my job with error code. &lt;BR /&gt;
&lt;BR /&gt;
By what you're saying, I will have to change my UNIX job to find the "ERROR:" word discarding the "ERROR: Errors printed on pages" line.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
João G.</description>
    <pubDate>Wed, 06 Apr 2011 13:59:20 GMT</pubDate>
    <dc:creator>JoãoG</dc:creator>
    <dc:date>2011-04-06T13:59:20Z</dc:date>
    <item>
      <title>Avoid ERROR: Errors Printed On Page message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44063#M9018</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I would like to know if there is any SAS option to avoid the following error statement to be written in the log:&lt;BR /&gt;
"ERROR: Errors printed on page..."&lt;BR /&gt;
&lt;BR /&gt;
I have redirected errors to another log, via proc printto, but at the end the SAS process wrotes the statement above.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
João Gonçalves</description>
      <pubDate>Tue, 05 Apr 2011 11:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44063#M9018</guid>
      <dc:creator>JoãoG</dc:creator>
      <dc:date>2011-04-05T11:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid ERROR: Errors Printed On Page message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44064#M9019</link>
      <description>Joao -&lt;BR /&gt;
&lt;BR /&gt;
There is not an option to turn off the reporting of ERRORs. Your best approach may be a call to Technical Support for help to resolve the errors that are being reported.</description>
      <pubDate>Tue, 05 Apr 2011 16:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44064#M9019</guid>
      <dc:creator>TimB_SAS</dc:creator>
      <dc:date>2011-04-05T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid ERROR: Errors Printed On Page message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44065#M9020</link>
      <description>Hi Tim,&lt;BR /&gt;
I know the cause and reason of the errors and they are being treated in my job. &lt;BR /&gt;
&lt;BR /&gt;
I have a try/lock macro trying to lock a SAS dataset. At the beginning of the macro, I redirect the log output so that the errors produced when trying to lock the dataset are discarded. Although in the log that aren't any ERROR messages, the final line is the message "ERROR: Errors printed on pages...", even though those pages don't even exist in the log file.&lt;BR /&gt;
&lt;BR /&gt;
After the job finishes, I look in the log for the word "ERROR:" and it finds the statement above, ending my job with error code. &lt;BR /&gt;
&lt;BR /&gt;
By what you're saying, I will have to change my UNIX job to find the "ERROR:" word discarding the "ERROR: Errors printed on pages" line.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
João G.</description>
      <pubDate>Wed, 06 Apr 2011 13:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44065#M9020</guid>
      <dc:creator>JoãoG</dc:creator>
      <dc:date>2011-04-06T13:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid ERROR: Errors Printed On Page message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44066#M9021</link>
      <description>Instead of asking for a LOCK that will fail use FOPEN to test for availability then LOCK when the file is available.&lt;BR /&gt;
&lt;BR /&gt;
Start a SAS session and submit these statements.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname here '.';&lt;BR /&gt;
data here.prodclass;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc fsview;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Then start another SAS session and submit these statements ...&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname here '.';&lt;BR /&gt;
data here.tempclass; &lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
filename DATAFIL ".\prodclass.sas7bdat";&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   do _n_ = 1 by 1 until(Obtainable);&lt;BR /&gt;
      Obtainable = fopen('DATAFIL','U');&lt;BR /&gt;
      if not Obtainable then do;&lt;BR /&gt;
         time=datetime();&lt;BR /&gt;
         put 'NOTE: File not obtainable at: ' time datetime20.2;&lt;BR /&gt;
         call sleep(10,1); &lt;BR /&gt;
         end;&lt;BR /&gt;
      end;&lt;BR /&gt;
   time=datetime();&lt;BR /&gt;
   put 'NOTE: All righty then file became obtainable at: ' time datetime20.2;&lt;BR /&gt;
   rc = fclose(Obtainable);&lt;BR /&gt;
   call execute('lock here.prodclass;');&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
proc datasets library=here nolist;&lt;BR /&gt;
   age tempclass prodclass;&lt;BR /&gt;
   run;&lt;BR /&gt;
   quit;&lt;BR /&gt;
&lt;BR /&gt;
lock here.prodclass clear;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The second session will wait, trying every 10 seconds, until you close FSVIEW in the first session.</description>
      <pubDate>Wed, 06 Apr 2011 15:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44066#M9021</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-04-06T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid ERROR: Errors Printed On Page message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44067#M9022</link>
      <description>I will give it a try. &lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 06 Apr 2011 16:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-ERROR-Errors-Printed-On-Page-message/m-p/44067#M9022</guid>
      <dc:creator>JoãoG</dc:creator>
      <dc:date>2011-04-06T16:21:35Z</dc:date>
    </item>
  </channel>
</rss>

