<?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: Log file location using nohup in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/389100#M10141</link>
    <description>&lt;P&gt;Maybe you need to use &lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#n17bp001b9i7scn0zvbx3jar94kb.htm" target="_self"&gt;PROC PRINTTO&lt;/A&gt; in your SAS program?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 12:57:14 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2017-08-18T12:57:14Z</dc:date>
    <item>
      <title>Log file location using nohup</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/388566#M10103</link>
      <description>&lt;P&gt;Hello, We&amp;nbsp;have 9.4(TS1M3) on Grid. When I submit job to grid in background, log file is getting created in current directory after job completes. Is there a way log file be found while the job is running so I check on the progress of a job?&lt;/P&gt;&lt;P&gt;Please advise!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/388566#M10103</guid>
      <dc:creator>Priyanka_b</dc:creator>
      <dc:date>2017-08-16T18:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Log file location using nohup</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/388592#M10105</link>
      <description>&lt;P&gt;I'm not sure if this is exactly what you're looking for: I've been known to grab the src and log information at the beginning of a SAS job (or at the end) to send myself a quick message when it runs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/* get job source and log location */
%let job_src=%sysfunc(getoption(sysin));
%let job_log = %sysfunc(getoption(log));

/* send msg with job information */
filename mailbox email subject="Job started: &amp;amp;job_src &amp;amp;job_log"
    to="email@example.com"
    type="text/plain";

data _null_;
  file mailbox;
  put "Job started:";
  put / "View the log at %sysfunc(getoption(log))";
  put / "View the src at %sysfunc(getoption(sysin))";&lt;BR /&gt;  put / "Server hostname is &amp;amp;systcpiphostname"; 
run;&lt;/PRE&gt;
&lt;P&gt;I haven't tried this on Grid (I &lt;EM&gt;expect&lt;/EM&gt; that it works), so hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 20:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/388592#M10105</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2017-08-16T20:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Log file location using nohup</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/389049#M10139</link>
      <description>&lt;P&gt;I do the following (this is for all our batch jobs):&lt;/P&gt;
&lt;P&gt;- the wrapper script for SAS bacth jobs determines a timestamp and process number&lt;/P&gt;
&lt;P&gt;- timestamp and process number are used to create the filename for the log file, used with the -log commandline option&lt;/P&gt;
&lt;P&gt;- the wrapper script runs a quick SAS program that writes all pertinent information (parameters, program name, time etc) to a SAS dataset; return code is set to -1, and a HTML navigation page for the current day is written, containing all jobs from the day, with links to the log file location&lt;/P&gt;
&lt;P&gt;- once the main job has run, a similar SAS program runs that adds the final return code to the jobcontrol dataset, and recreates the navigation page&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as a job runs, I get an entry in today's jobcontrol page on the web server (return code is "running"). Clicking on the link that is attached to the program name will display the log. With "reload" I can watch the job's progress.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 06:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/389049#M10139</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-18T06:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Log file location using nohup</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/389100#M10141</link>
      <description>&lt;P&gt;Maybe you need to use &lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#n17bp001b9i7scn0zvbx3jar94kb.htm" target="_self"&gt;PROC PRINTTO&lt;/A&gt; in your SAS program?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 12:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Log-file-location-using-nohup/m-p/389100#M10141</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-08-18T12:57:14Z</dc:date>
    </item>
  </channel>
</rss>

