<?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: SAS LOGPARM= option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351889#M81967</link>
    <description>&lt;P&gt;Logparm is going to need to be configured in the config file or command line option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are looking for a way to create output of the log you may want to investigate Proc Printto. With the LOG= option to direct the log output to a text file it is pretty flexible and can be turned off and on for specific procedures or data steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A rough example:&lt;/P&gt;
&lt;PRE&gt;proc printto log='d:\log.txt' new;
run;

proc freq data=sashelp.class;
   tables sex;
run;

proc means data=sashelp.class;
   var height weight;
run;

proc printto;   /* without options ends proc printto output*/
run;&lt;/PRE&gt;
&lt;P&gt;the path to the text file should of course be valid on your system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The options of printto actually let you append to an existing file so you could be creating separate streams of log output, such as one for data steps, one for analyis procedures and yet another for report procedures.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 19:50:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-20T19:50:17Z</dc:date>
    <item>
      <title>SAS LOGPARM= option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351874#M81958</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask what file I need to modify to add&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="strong"&gt;LOGPARM&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;/STRONG&gt;option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351874#M81958</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-04-20T19:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOGPARM= option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351889#M81967</link>
      <description>&lt;P&gt;Logparm is going to need to be configured in the config file or command line option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are looking for a way to create output of the log you may want to investigate Proc Printto. With the LOG= option to direct the log output to a text file it is pretty flexible and can be turned off and on for specific procedures or data steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A rough example:&lt;/P&gt;
&lt;PRE&gt;proc printto log='d:\log.txt' new;
run;

proc freq data=sashelp.class;
   tables sex;
run;

proc means data=sashelp.class;
   var height weight;
run;

proc printto;   /* without options ends proc printto output*/
run;&lt;/PRE&gt;
&lt;P&gt;the path to the text file should of course be valid on your system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The options of printto actually let you append to an existing file so you could be creating separate streams of log output, such as one for data steps, one for analyis procedures and yet another for report procedures.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351889#M81967</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-20T19:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOGPARM= option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351916#M81980</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask how to do it in&amp;nbsp;&lt;SPAN&gt;config file or command line option?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351916#M81980</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-04-20T20:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOGPARM= option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351941#M81998</link>
      <description>&lt;P&gt;First you need to know what you want to accomplish with the values you set.&lt;/P&gt;
&lt;P&gt;If you want to make the same settings for every session then edid the config file.&lt;/P&gt;
&lt;P&gt;Then find the config file you are using. Copy and make a backup of the current working version just in case.&lt;/P&gt;
&lt;P&gt;It will be a text file with a name like SASV9.CFG&lt;/P&gt;
&lt;P&gt;You would add a some code that looks like&lt;/P&gt;
&lt;PRE&gt;-LOGPARM=  "&amp;lt;OPEN= APPEND | REPLACE | REPLACEOLD&amp;gt;  
 &amp;lt;ROLLOVER= AUTO | NONE | SESSION | n | nK | nM | nG&amp;gt;  
 &amp;lt;WRITE= BUFFERED | IMMEDIATE&amp;gt;" &lt;/PRE&gt;
&lt;P&gt;with one or more of&amp;nbsp;the options set for&amp;nbsp; Open Rollover Write. Without knowing exactly what you are attempting to do it is hard to make suggestions and I refer you to online help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change for different sessions then in what every program or tool starts SAS you would add -logparm "&amp;nbsp;&amp;nbsp;&amp;lt;options go here&amp;gt;" note that you may want to work with the -LOG as well as there are directives that affect the name of the log file(s) created.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 22:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/351941#M81998</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-20T22:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOGPARM= option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/589753#M168725</link>
      <description>&lt;P&gt;&lt;FONT color="#000120"&gt;I just added this line to my config file and it worked to answer my own problem.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-LOGPARM "WRITE=IMMEDIATE"&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#000120"&gt;The syntax of how to convert a command line parameter to a config file entry was something I was wondering about.&amp;nbsp; This article helped me.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; put an equal sign, I didn't use one.&amp;nbsp; It might be optional.&amp;nbsp; The angle brackets I figure were used to indicate the three sub-options are optional and not required in the quotes.&amp;nbsp; Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 17:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOGPARM-option/m-p/589753#M168725</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2019-09-18T17:53:03Z</dc:date>
    </item>
  </channel>
</rss>

