<?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: Implement altlog in the code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171828#M33058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The naming like %B #B are coming form "C" and java conventions. I already stated I did not trust them to work in base. Seen them becoming documented when all the logging with EIP (metadata) was introduced (9.1.3). Node to see it works with base 9.4 Windows.&amp;nbsp; What always has worked is using OS-scripting the sasown.bat or sasown.cnd approach. &lt;/P&gt;&lt;P&gt;Use those OS environmentvariables in the SAS physical datasetnamesusing a ! ( exclamationpoint).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An OS script Windows Could be like:&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET saspdrv=&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; where your sas is isntalledc&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET sashdrv=%userprofile%\MY_SASfiles&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF EXIST %sashdrv%\BATCH\SAS.bat CALL %sashdrv%\BATCH\SAS.BAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; START /HIGH "sas" "%saspdrv%\SAS.exe" %sasconfg% %sasautos% %sastitle% %sasoptns% %1 %2 %3 %4 %5 %6 %7 %8 %9&lt;/P&gt;&lt;P&gt;&amp;nbsp; @echo&amp;nbsp; sasv9.bat %sasprgm% Stopped: %date% - %time% Return Code Value: %errorlevel% &amp;gt;&amp;gt;&amp;nbsp; %sashdrv%\sasulog.log&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 07:44:08 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-08-26T07:44:08Z</dc:date>
    <item>
      <title>Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171808#M33038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a copy of the code log so I try to use altlog in my program but I afraid I don´t know how to achieve with success and the web pages I found don't explain very well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to safe a copy of the log in for example C:\Users\dummytest\Desktop\Sergio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I write&amp;nbsp; at the beggining of my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc options define value option = altlog;&lt;/P&gt;&lt;P&gt;dm 'MyProgram' -altlog C:\Users\dummytest\Desktop\Sergio\;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but nohing happens. Its seems easy but I am unable to accomplish the task &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 07:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171808#M33038</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-22T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171809#M33039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See options XWAIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 07:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171809#M33039</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-22T07:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171810#M33040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the altlog option &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n02cl0iq0k1fmxn11p83yirplodk.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n02cl0iq0k1fmxn11p83yirplodk.htm"&gt;SAS(R) 9.4 Companion for Windows, Third Edition&lt;/A&gt; it can only be set at invocation time. Not in a running sas session.&lt;/P&gt;&lt;P&gt;When needing that change the config.sas or the way you start sas (scritp/cmd) and give the option there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 08:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171810#M33040</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-22T08:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171811#M33041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please make an example for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I start sas from script or cmd command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for such a questions but its very important for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pd: I have SAS 9.1.3, is there a problem for altlog option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 08:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171811#M33041</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-22T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171812#M33042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having SAS 9.1.3 is no problem, the altlog option is a very old one. Cannot remember it was not there.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are starting sas is some way... clicking on icon or whatever.&lt;/P&gt;&lt;P&gt;Behind the icon the cmd for starting sas is hidden. You can make a copy (short-cut and change that.&lt;/P&gt;&lt;P&gt;Perhaps more easy is to find the config.sas file of your installation.&amp;nbsp; C:/program files/SAS .....&amp;nbsp;&amp;nbsp;&amp;nbsp; or do proc options is a running sas session an search for the names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This syntax looks all right.&amp;nbsp;&amp;nbsp;&amp;nbsp; -altlog C:\Users\dummytest\Desktop\Sergio\&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 09:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171812#M33042</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-22T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171813#M33043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had success doing a shortcut to the sas.exe and edit the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SAS\SAS 9.1\sas.exe" -altlog &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;-altlog C:\Users\dummytest\Desktop\Sergio\&lt;/SPAN&gt;test.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, is there any option to change the name of the log dinamically or this is the best I can do?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171813#M33043</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-22T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171814#M33044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put in an environment variable. When you have command prompt running yougan give a "set" command to see them.&amp;nbsp; TMP TEMP and USERname&amp;nbsp; are common available.&amp;nbsp; &lt;/P&gt;&lt;P&gt;"C:\Program Files\SAS\SAS 9.1\sas.exe" -altlog &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;-altlog %TMP%\%USERNAME%\altlog.log&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Should work when Windows does the variable expansion.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I am not sure whether it works with altlog 9.1.3 and Windows but there are parameters possible at the logfile.&amp;nbsp; #d #h to find them&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002303556.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002303556.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&amp;nbsp; ( Directives for Controlling the Name of SAS Log Files )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 11:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171814#M33044</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-22T11:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171815#M33045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a folder just for this test&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;C:\test\bat1\&lt;/P&gt;&lt;P&gt;In that folder create the file &lt;/P&gt;&lt;P&gt;sasv9.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that file put the lines&lt;/P&gt;&lt;P&gt;-sysin "path and name of program you want to run"&lt;/P&gt;&lt;P&gt;-logparm rollover=session&lt;/P&gt;&lt;P&gt;-log "path and name.at.#y-#m-#d.log"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for this test, create a desktop icon&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp; test my batch sas&lt;/P&gt;&lt;P&gt;command&amp;nbsp;&amp;nbsp;&amp;nbsp; {path to sas.exe]\sas.exe&lt;/P&gt;&lt;P&gt;startin folder&amp;nbsp;&amp;nbsp; c:\test\bat1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command needs no more than the path and name of sas.exe&lt;/P&gt;&lt;P&gt;(depending on the&amp;nbsp; path, it might need to be protected with double quotes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then launching the icon you have created will launch your program in batch&lt;/P&gt;&lt;P&gt;and wirh the logfile you named in the sasv9.cfg file but with # items replaced with year month and day &lt;/P&gt;&lt;P&gt;There are more # features including time parts and processID. They are documented for the LOGPARM option (which you have to change from default value rollover=none)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to test with that icon you could create a windows script or dos batfile...... as long as you set the start-in folder to the one holding that sasv9.cfg file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a paper on this in the 2013 SAS Global Forum. The title is something about launching SAS with less risk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 11:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171815#M33045</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-22T11:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171816#M33046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp;&amp;nbsp; Unrecognized SAS option name, SESSION&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp;&amp;nbsp; Unrecognized SAS option name, =&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp;&amp;nbsp; (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.&lt;/P&gt;&lt;P&gt;UNABLE TO INITIALIZE THE SAS KERNEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my sasv9 file is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-awsTitle mySAS&lt;/P&gt;&lt;P&gt;-verbose&lt;/P&gt;&lt;P&gt;-SYSIN&amp;nbsp; "C:\Program Files\SAS\SAS 9.1\sas.exe"&lt;/P&gt;&lt;P&gt;-LOG&amp;nbsp; "C:\Users\dddd\Desktop\sas\testcfg\log.#y-#m-#d.log"&lt;/P&gt;&lt;P&gt;-logparm rollover=session&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171816#M33046</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-22T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171817#M33047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The value for the -sysin option should be the path and name of a .sas program&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;c:\test\myQTest.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;checking the online doc (you should too) the logparm option value their example appears in double quotes (probably because of that &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171817#M33047</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-22T13:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171818#M33048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of altlog you may want to investigate Proc Printto with log= option . That would allow start/stop of the log output and changing file names in mid session/program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 16:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171818#M33048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-22T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171819#M33049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it, the issue was &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;-logparm rollover=session, the write option is -logparm "rollover=session".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Peter for your help but I confused because I thought I´d have two copies of the log, the one&amp;nbsp; is showed in the sas window and the second the copy I told SAS to save to a specific Path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I only see a window where I can see the path than the log and lst will save. I believed that a window opened and the code run as if a macro was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the questions but is there any option for write the code in a window. Its my first time I run a program in batch way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ballardw, if I not wrong with proc printto you only get the log from a file or by OSD, I need the two ways, see the code in the window an make a copy in the file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171819#M33049</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-25T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171820#M33050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you start sas wihtoud mentioning the sas-program but with all those altlog settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171820#M33050</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-25T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171821#M33051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the Peter's steps and my SASV9.CFG looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-awsTitle mySAS&lt;/P&gt;&lt;P&gt;-LOG&amp;nbsp; "C:\Users\myuser\Desktop\Sergio\testcfg\SASLOG_#Y#m#d_#H#M.LOG"&lt;/P&gt;&lt;P&gt;-sysin "C:\my path route\my program.sas"&lt;/P&gt;&lt;P&gt;-logparm "rollover=session"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171821#M33051</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-25T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171822#M33052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That "-sysin "C:\my path route\my program.sas"&amp;nbsp; options is the instruction to run in batch mode with that specific source.&lt;/P&gt;&lt;P&gt;Remove it and you have you interactive editor again.&amp;nbsp;&amp;nbsp; Still creating that additional log (session based) &lt;/P&gt;&lt;P&gt;It could be that somewhere those "my program.log" and&amp;nbsp; "my program.lst" have been created in the current directory of sas of that moment.&lt;/P&gt;&lt;P&gt;You had your additional log and lst... But not able to see them,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171822#M33052</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-25T16:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171823#M33053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For an interactive session just remove the -sysin option and change the -log to -altlog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171823#M33053</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-25T16:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171824#M33054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also send your log to a file using proc printto.&amp;nbsp; I ran a search and there is a conversation or two about printto.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171824#M33054</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-08-25T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171825#M33055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, works fine although I can`t insert the month name in the log file, if I rename as "mylog_%B.LOG" or "mylog_#B.LOG" , when I open SAS it display mylog. and the percent or ampersand sign, not the August month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is possible that these options are avaivable only for log and not for atlog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 06:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171825#M33055</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-26T06:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171826#M33056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tha's right.&lt;/P&gt;&lt;P&gt;early releases of SAS9 didn't support it for ALTLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even 9.4 supports it for altlog only when running sas display manager&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 07:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171826#M33056</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-26T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Implement altlog in the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171827#M33057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so It's done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 07:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/m-p/171827#M33057</guid>
      <dc:creator>SergioSanchez</dc:creator>
      <dc:date>2014-08-26T07:39:55Z</dc:date>
    </item>
  </channel>
</rss>

