<?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 change the default log file location for scheduled jobs in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720264#M21571</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I deploy a new job, its log is written to the new directory. But already existing job's logs are going to the old directory. I redeployed the job, unscheduled and scheduled its flow again, but still not working.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 16:34:35 GMT</pubDate>
    <dc:creator>SASWayne</dc:creator>
    <dc:date>2021-02-18T16:34:35Z</dc:date>
    <item>
      <title>How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688621#M20250</link>
      <description>&lt;P&gt;I have a scheduled job that runs in SAS MC on the scheduler. I get an email notification saying that my flow has started and that the log file can be found here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Command]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : /opt/sas/sascompute/config/Lev1/SASApp/BatchServer/sasbatch.sh –log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that I don't have access to the above directory. How can I route this file somewhere else? Also, I don't see Server Manager in MC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This is what my SAS MC looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS MC.png" style="width: 313px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50139i9BE672B6F72EEAF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS MC.png" alt="SAS MC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 20:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688621#M20250</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2020-10-02T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688623#M20252</link>
      <description>&lt;P&gt;The log file location is specified in the Server Manager plug-in for SAS Management Console in the properties for the SAS DATA Step Batch Server. You would not be able to see the Server Manager plug-in unless you are a SAS Administrator or have otherwise been granted access to that plug-in. By default, the path is &amp;lt;SAS-configuration-directory&amp;gt;/Levn/SASApp/BatchServer/Logs. When you deploy a job the command is built using the path set in that configuration. It is possible for you to modify your job's command after that and change that option, or add the &lt;A href="https://go.documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=p10cborm89irzdn1m5y3o4hfw1g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;ALTLOG option&lt;/A&gt; to specify an additional location.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 21:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688623#M20252</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-10-02T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688624#M20253</link>
      <description>&lt;P&gt;I certainly prefer ALTLOG when it can be used.&amp;nbsp; I've found in some cases, ALTLOG doesn't do quite what I expect, for example with SAS Connect sessions where I've been unable to get log directives to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If for some reason ALTLOG didn't take care of your needs, Proc PRINTTO is another option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n17bp001b9i7scn0zvbx3jar94kb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n17bp001b9i7scn0zvbx3jar94kb.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;Lastly, and it's not at all a preferred option, one can always create a FILENAME statement that points to a text file and then in one's code use a FILE statement with PUT commands to write one's own logging to the text file.&amp;nbsp; Definitely a last ditch measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 21:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688624#M20253</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-02T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688642#M20254</link>
      <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dumb question, when a program runs on the scheduler is it considered 'batch mode'?&amp;nbsp; If so, I think I can add altlog to the beginning of my program in the options like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;OPTIONS='LOG=&amp;lt;file&amp;gt; PRINT=&amp;lt;file&amp;gt; ALTLOG=&amp;lt;file&amp;gt;'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that sound right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 00:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688642#M20254</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2020-10-03T00:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688651#M20255</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7900"&gt;@SAShole&lt;/a&gt;&amp;nbsp; - Indeed that is correct. The scheduler runs SAS Data Step Batch Server jobs and changing the logs location is simply a matter of changing the Logs Directory option in the properties of the&amp;nbsp;SAS Data Step Batch Server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 02:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/688651#M20255</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-03T02:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720223#M21568</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to change the path to which logs are written for scheduled jobs submitted by users. I had updated the path in the SAS Datastep batch server properties under server manager in SMC. But still logs are written to the old directory.&amp;nbsp;I believe changes in SMC does not require any service restart.&lt;/P&gt;
&lt;P&gt;Do I need to update it somewhere else as well in SAS grid?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it require redeploying the jobs?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720223#M21568</guid>
      <dc:creator>SASWayne</dc:creator>
      <dc:date>2021-02-18T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720227#M21569</link>
      <description>When a job is deployed its command line (including the log path) is written to the metadata object, so redeploying the job would need to occur to update the path there. You would then need to reschedule the job so the command line is updated in the schedule.</description>
      <pubDate>Thu, 18 Feb 2021 15:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720227#M21569</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-18T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720234#M21570</link>
      <description>&lt;P&gt;Thank you for your quick response, appreciate it!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I redeployed my job, unscheduled and then scheduled it again from SMC. But still job logs are going to the old directory. Wondering if there is anything to change at PPM?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 16:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720234#M21570</guid>
      <dc:creator>SASWayne</dc:creator>
      <dc:date>2021-02-18T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720264#M21571</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I deploy a new job, its log is written to the new directory. But already existing job's logs are going to the old directory. I redeployed the job, unscheduled and scheduled its flow again, but still not working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 16:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720264#M21571</guid>
      <dc:creator>SASWayne</dc:creator>
      <dc:date>2021-02-18T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720289#M21572</link>
      <description>In the properties for the deployed job in SMC you should be able to see the command string, does it reflect the new log path? Here is an example from one of my deployed jobs, note the log path defined there:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;sas-config&amp;gt;/Lev1/SASApp/BatchServer/sasbatch.sh -log &amp;lt;sas-config&amp;gt;/Lev1/SASApp/BatchServer/Logs/sysget_  -batch -noterminal -logparm "rollover=session"  -sysin &amp;lt;sas-config&amp;gt;/Lev1/SASApp/SASEnvironment/SASCode/Jobs/sysget.sas&lt;BR /&gt;&lt;BR /&gt;This should be updated with the new log path when you redeploy, and when you schedule this is what is sent to the scheduling server to execute. if that command line has been manually modified, this could be preventing it from being populated by redeployment.</description>
      <pubDate>Thu, 18 Feb 2021 18:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720289#M21572</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-18T18:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720424#M21575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command was not updated even after redeploying the job. Found something interesting as well, when I select a different app server while redeploying a job, it is not updated in the command. It appears that SAS has release a hotfix #B6T013 (&lt;A href="https://tshf.sas.com/techsup/download/hotfix/HF2/B6T.html#62194" target="_blank"&gt;https://tshf.sas.com/techsup/download/hotfix/HF2/B6T.html#62194&lt;/A&gt;) to address this issue which is already deployed in our environment and has not fixed the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 11:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720424#M21575</guid>
      <dc:creator>SASWayne</dc:creator>
      <dc:date>2021-02-19T11:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720451#M21577</link>
      <description>That is a hot fix for SAS Management Console, often this is run from a separate client system rather than the server. Did you confirm the hot fix was applied there?&lt;BR /&gt;&lt;BR /&gt;Is the "Reset" button available when viewing the command line in SMC?</description>
      <pubDate>Fri, 19 Feb 2021 13:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720451#M21577</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-19T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720861#M21599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the hotfix is applied on both client and server machines. I could see the specific hotfix B6T013 in deploymentreg generated on the client machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning the reset button, I could find it in SMC but when I click on it, I see the message "The command line property was set when deployed and cannot be reset. Redeploy the job for scheduling"&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720861#M21599</guid>
      <dc:creator>SASWayne</dc:creator>
      <dc:date>2021-02-22T09:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the default log file location for scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720902#M21600</link>
      <description>That message suggests the command hasn't been manually altered (which could prevent the redeploy from overwriting it).&lt;BR /&gt;At this point, you may wish to create a support track with SAS Technical Support, it seems like the schedule manager plugin isn't doing what it should. The workaround it seems would be to recreate the job.</description>
      <pubDate>Mon, 22 Feb 2021 13:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-change-the-default-log-file-location-for-scheduled-jobs/m-p/720902#M21600</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-22T13:34:28Z</dc:date>
    </item>
  </channel>
</rss>

