<?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: save log question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573654#M22996</link>
    <description>&lt;P&gt;well, I believe altlog is what I looking for, but not sure how to use altlog.&lt;/P&gt;&lt;P&gt;so I will use resetline for now. thanks all.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 19:03:16 GMT</pubDate>
    <dc:creator>magicdj</dc:creator>
    <dc:date>2019-07-15T19:03:16Z</dc:date>
    <item>
      <title>save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573641#M22991</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…..I cleared log and use &lt;FONT color="#000000" face="Calibri" size="3"&gt;proc printto to save log, but log start from line 4109? how to make it start from line 1? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;don't know how to reset number after each run. thanks.&lt;/FONT&gt;&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;dm output 'clear';

dm log 'clear';

proc delete data=work._all_;

run;

proc printto log='L:\ acct.log' new;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4109&amp;nbsp;&lt;BR /&gt;4110&amp;nbsp;&lt;BR /&gt;4111&amp;nbsp; ****************************************************************************&lt;BR /&gt;4112&amp;nbsp; Filename&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573641#M22991</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-15T18:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573645#M22992</link>
      <description>&lt;P&gt;Clearing the log does not reset the line numbers to 1. So maybe you don't need the line numbers reset to 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want everything saved from line 1, you want to use PROC PRINTTO as the first line of your program — or use the ALTLOG option when you invoke SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573645#M22992</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-15T18:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573649#M22993</link>
      <description>&lt;P&gt;I don't have any config file, and I searched online, find an example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-altlog L:\acct.log   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this command is not working. don't know how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in fist line of my program. but before I run my program, I had to run some macro to setup path, call macro programs, that is the 4000 line before my program log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573649#M22993</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-15T18:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573650#M22994</link>
      <description>You would add that line to your config file. Every SAS installation has a config file.</description>
      <pubDate>Mon, 15 Jul 2019 18:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573650#M22994</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-15T18:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573651#M22995</link>
      <description>&lt;P&gt;You can try using the RESETLINE statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=n12yrecjoxsozln1rgu8t4h4eo3k.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=n12yrecjoxsozln1rgu8t4h4eo3k.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 note that you now be generating SAS logs that are lying to you about what has happened.&amp;nbsp; Reseting the line numbering does NOT change all of the other settings, datasets, filenames, libnames, etc that the pervious 4000 lines of code have generated.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573651#M22995</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-15T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: save log question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573654#M22996</link>
      <description>&lt;P&gt;well, I believe altlog is what I looking for, but not sure how to use altlog.&lt;/P&gt;&lt;P&gt;so I will use resetline for now. thanks all.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 19:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/save-log-question/m-p/573654#M22996</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-15T19:03:16Z</dc:date>
    </item>
  </channel>
</rss>

