<?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: ALTLOG in Batch not picking up settings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/515019#M138928</link>
    <description>&lt;P&gt;Apologies i meant to mention that in the original post, i read that as well but it mentions that this would be loaded on the start of a new SAS Session, however the option&amp;nbsp;&lt;SPAN&gt;LOGCONFIGLOC is not in my config files&amp;nbsp;and seeing as both Batch and Interactive sessions load from the same config i would expect them to currently act the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additionally even if the config was set without me changing it, the llogs location i have set is a separate folder that is only specified&amp;nbsp;using the -altlog location in the SAS.cfg file suggesting it is pulling that setting but simply not converting the various switches that have been set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unless this parameter is in a separate config? Just for clarity's&amp;nbsp;sake this is not a planned deployment just a single server (4x single servers) using Base SA 9.4 no MetaData etc.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 08:53:04 GMT</pubDate>
    <dc:creator>srapp88</dc:creator>
    <dc:date>2018-11-21T08:53:04Z</dc:date>
    <item>
      <title>ALTLOG in Batch not picking up settings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/514804#M138847</link>
      <description>&lt;P&gt;I previously had a question on getting ALTLOG to work and it was answered per this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Setting-up-ALTLOG-in-SASV9-cfg-FIle/m-p/506426#M135766" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Setting-up-ALTLOG-in-SASV9-cfg-FIle/m-p/506426#M135766&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However i have noticed that when running SAS jobs in batch they do not pick up these settings and instead create a file with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%l_%n_%Y%m%d_%H%M%s_%p.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example a correct and incorrect log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASLogs.JPG" style="width: 347px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25085iACFA399856B074BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASLogs.JPG" alt="SASLogs.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From reading the article at:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=p0fmptfnyvi1n6n148u0qu4h44a5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1iukhfq8fhb8gn12dgabfozfd89" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=p0fmptfnyvi1n6n148u0qu4h44a5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1iukhfq8fhb8gn12dgabfozfd89&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see it states it should work for both in line and batch mode but when every i run a job in batch I get the above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got around this by putting in the Batch script -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-ALTLOG "D:\SAS_Logs\%username%_%computername%_%stamp%.log"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i wanted to know what I am getting wrong or does the config simply not work in batch like this?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/514804#M138847</guid>
      <dc:creator>srapp88</dc:creator>
      <dc:date>2018-11-20T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALTLOG in Batch not picking up settings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/514816#M138850</link>
      <description>&lt;P&gt;Does this note from the &lt;A href="https://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=p0fmptfnyvi1n6n148u0qu4h44a5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1iukhfq8fhb8gn12dgabfozfd89" target="_self"&gt;documentation&lt;/A&gt; help?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="xis-noteGenText"&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;If you start SAS in batch mode or server mode and the LOGCONFIGLOC= option is specified, logging is done by the SAS logging facility. The traditional SAS log option LOGPARM= is ignored. The traditional SAS log option LOG= is honored only when the %S{App.Log} conversion character is specified in the logging configuration file.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;SPAN class="xis-xrefText"&gt;For more information, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="ng-scope" tabindex="0" title="" href="https://go.documentation.sas.com/?docsetId=logug&amp;amp;docsetTarget=p1ux9lxccgetcgn1hmkhm64m3ud0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="logug" data-docset-version="9.4" data-original-href="p1ux9lxccgetcgn1hmkhm64m3ud0.htm"&gt;The SAS Logging Facility&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-xrefBookTitle"&gt;SAS Logging: Configuration and Programming Reference&lt;/SPAN&gt;&lt;SPAN class="xis-xrefText"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/514816#M138850</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-20T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALTLOG in Batch not picking up settings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/515019#M138928</link>
      <description>&lt;P&gt;Apologies i meant to mention that in the original post, i read that as well but it mentions that this would be loaded on the start of a new SAS Session, however the option&amp;nbsp;&lt;SPAN&gt;LOGCONFIGLOC is not in my config files&amp;nbsp;and seeing as both Batch and Interactive sessions load from the same config i would expect them to currently act the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additionally even if the config was set without me changing it, the llogs location i have set is a separate folder that is only specified&amp;nbsp;using the -altlog location in the SAS.cfg file suggesting it is pulling that setting but simply not converting the various switches that have been set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unless this parameter is in a separate config? Just for clarity's&amp;nbsp;sake this is not a planned deployment just a single server (4x single servers) using Base SA 9.4 no MetaData etc.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 08:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ALTLOG-in-Batch-not-picking-up-settings/m-p/515019#M138928</guid>
      <dc:creator>srapp88</dc:creator>
      <dc:date>2018-11-21T08:53:04Z</dc:date>
    </item>
  </channel>
</rss>

