<?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: Warning: Max. log size reached : questions on printto? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608196#M8426</link>
    <description>Thanks again.</description>
    <pubDate>Fri, 29 Nov 2019 09:21:26 GMT</pubDate>
    <dc:creator>ak2011</dc:creator>
    <dc:date>2019-11-29T09:21:26Z</dc:date>
    <item>
      <title>Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607444#M8397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am working with a large dataset&amp;nbsp; in SAS&amp;nbsp; Studio with over 100,000 obs and I receive this warning from SAS: Maximum log size reached...&lt;/P&gt;
&lt;P&gt;I read SAS online documentation and someone suggested proc printo log= '/folders/myfolders/ak. log&lt;/P&gt;
&lt;P&gt;Comments/questions on this:&lt;/P&gt;
&lt;P&gt;1. a.Will SAS create the ak.log file or I have to create it myself in SAS studio or any other drive out like "C" out of SAS studio?&lt;/P&gt;
&lt;P&gt;b. Can it be any extentions like .pdf or .doc for the printto statement or it is specifically .log&lt;/P&gt;
&lt;P&gt;2. Should I write the printto statatement before or after reading the large dataset or before or after the proc print statement of the large dataset? Where exactly in the data steps should the proc printo statement be written?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I tried the proc printot statement before reading the large dataset and I received nothing in SAS log to see if there are errors, warnings or notes in my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. a. If SAS Studio cannot effectively handle over 100,000 obs, do you think R can do that easily? ie. Will R also give the same warning like SAS Studio? b. Will&amp;nbsp; regular SAS (not Studio) also give the same warning message if I were to use the same 100000+ records that I am using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;ak.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 17:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607444#M8397</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2019-11-26T17:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607445#M8398</link>
      <description>&lt;OL&gt;
&lt;LI&gt;SAS creates the file&lt;/LI&gt;
&lt;LI&gt;You can use any extension you want, but since it will be a text file, either .log or .txt seem to make sense. You could call it .pdf but it will still be a text file (and probably won't open properly)&lt;/LI&gt;
&lt;LI&gt;Once you execute the PROC PRINTTO LOG= statement, nothing gets written to the log.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;R questions belong in an R forum&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 26 Nov 2019 17:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607445#M8398</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-26T17:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607447#M8399</link>
      <description>SAS Studio can handle 100K observations, you have something wrong with your CODE if you're getting that many errors in your log. Observation counts don't affect the log, code, errors and warnings do.</description>
      <pubDate>Tue, 26 Nov 2019 17:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607447#M8399</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-26T17:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607463#M8402</link>
      <description>&lt;P&gt;SAS Studio is a web application. The log needs to be displayed as part of a web page, and large pages can overwhelm the browser. The behaviour you see is designed to prevent this.&lt;/P&gt;
&lt;P&gt;The question is now, what causes the log to grow so big? Normally, any single step will only write its code and some NOTEs about observations read and written, and time spent. Even data ERRORs are limited in number. So you have something else in your code that causes the log to blow up. Unnecessary put statements, for example. Or you run something in a (macro?) loop that causes repeated logging of the same step.&lt;/P&gt;
&lt;P&gt;Please post the offending code.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 20:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607463#M8402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-26T20:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607537#M8405</link>
      <description>&lt;P&gt;To add to previous answers I relate to &lt;STRONG&gt;proc printto&lt;/STRONG&gt; usage:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log='/folders/..........log';   /* or .txt  */
run;

.... your code ....

proc printto; run;   /* to close the log file */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you can try run your code with&amp;nbsp;&lt;STRONG&gt;options obs=1;&amp;nbsp;&lt;/STRONG&gt;and check the log, but you will probably have the same issue. See&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s post.&lt;/P&gt;
&lt;P&gt;In such case don't forget to run&amp;nbsp;&lt;STRONG&gt;options obs=max;&lt;/STRONG&gt; to have a full run again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run your code step by step and check which step makes the issue.&lt;/P&gt;
&lt;P&gt;Does the code contain one or more of the options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;options symbolgen mprint mlogic source2&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;errors=&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;the first 3 options are used to debug macros and may cause the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;define&amp;nbsp;&lt;STRONG&gt;options errors=3&lt;/STRONG&gt; or any other small number, in order to display data errors like illegal dates.&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>Wed, 27 Nov 2019 01:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/607537#M8405</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-11-27T01:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608192#M8423</link>
      <description>Thanks for your response.</description>
      <pubDate>Fri, 29 Nov 2019 09:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608192#M8423</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2019-11-29T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608193#M8424</link>
      <description>Thanks. I would recheck my code to see if there are no errors.</description>
      <pubDate>Fri, 29 Nov 2019 09:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608193#M8424</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2019-11-29T09:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608195#M8425</link>
      <description>Thanks. I would recheck my  SAS code.</description>
      <pubDate>Fri, 29 Nov 2019 09:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608195#M8425</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2019-11-29T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: Max. log size reached : questions on printto?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608196#M8426</link>
      <description>Thanks again.</description>
      <pubDate>Fri, 29 Nov 2019 09:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Warning-Max-log-size-reached-questions-on-printto/m-p/608196#M8426</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2019-11-29T09:21:26Z</dc:date>
    </item>
  </channel>
</rss>

