<?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: HOW TO CLEAR LOG AND START FRESH COUNTING in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520416#M4024</link>
    <description>&lt;P&gt;That's why you hold down alt while selecting and that allows you to not select the line numbers and not have this problem in the first place. You can also use PROC PRINTTO to direct the log to a file and several text editors (NotePad++, textWrangler) will remove line numbers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/239423"&gt;@d6k5d3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS has so far logged 14678 lines of code, note, warnings etc. I have to copy some code snippets from log. But the problem is when I copy, the line counts also get copied, and I have to manually delete all of those. It's very tedious and boring when the code is really long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why I was thinking if there's a way to clear log and start fresh counting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 16:01:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-12-11T16:01:36Z</dc:date>
    <item>
      <title>HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520279#M4002</link>
      <description>&lt;P&gt;SAS has so far logged 14678 lines of code, note, warnings etc. I have to copy some code snippets from log. But the problem is when I copy, the line counts also get copied, and I have to manually delete all of those. It's very tedious and boring when the code is really long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I was thinking if there's a way to clear log and start fresh counting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520279#M4002</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2018-12-11T08:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520292#M4007</link>
      <description>&lt;P&gt;Log where?&amp;nbsp; Using what software?&amp;nbsp; If its desktop SAS, then you can use the shortcut keys and set one to be cle log, thats what I used to do, then press the shortcut key, then f8 to run code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its other software not entirely sure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its from code, then you can run (in some systems) run:&lt;/P&gt;
&lt;PRE&gt;dm 'cle log';&lt;/PRE&gt;
&lt;P&gt;You could also shrink your log by using:&lt;/P&gt;
&lt;PRE&gt;options nomlogic nomprint nosymbolgen nosource nosource2;
&lt;/PRE&gt;
&lt;P&gt;Plus various other options,&lt;/P&gt;
&lt;P&gt;You can also condense the log by various means such as noprint options.&lt;/P&gt;
&lt;P&gt;Without some information though its hard to say.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520292#M4007</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-11T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520325#M4015</link>
      <description>&lt;P&gt;But the dm "clear log" does not reset the line counter; my search in the documentation has not revealed a statement or command to reset the log line counter.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 11:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520325#M4015</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-11T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520327#M4016</link>
      <description>&lt;P&gt;Ah, I should have read the post more thoroughly.&amp;nbsp; In which case, I would suggest having a printto directing the log output to a file.&amp;nbsp; Then have a snippet of code which can read that log file and just strip out line numbers, a simple:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  file ".../want.txt";
  infile "...have.log";
  input;
  put(scan(_infile_,2," "));
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 11:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520327#M4016</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-11T11:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520416#M4024</link>
      <description>&lt;P&gt;That's why you hold down alt while selecting and that allows you to not select the line numbers and not have this problem in the first place. You can also use PROC PRINTTO to direct the log to a file and several text editors (NotePad++, textWrangler) will remove line numbers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/239423"&gt;@d6k5d3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS has so far logged 14678 lines of code, note, warnings etc. I have to copy some code snippets from log. But the problem is when I copy, the line counts also get copied, and I have to manually delete all of those. It's very tedious and boring when the code is really long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why I was thinking if there's a way to clear log and start fresh counting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520416#M4024</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-11T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO CLEAR LOG AND START FRESH COUNTING</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520429#M4026</link>
      <description>Brilliant! Even though it does not clear log, and start a fresh counting, it definitely helps me get rid of deleting those line counts. Thank you!</description>
      <pubDate>Tue, 11 Dec 2018 16:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HOW-TO-CLEAR-LOG-AND-START-FRESH-COUNTING/m-p/520429#M4026</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2018-12-11T16:42:58Z</dc:date>
    </item>
  </channel>
</rss>

