<?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 Capture log file name in monitoring process: in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21822#M146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As much as I know "Status Handling / send job status" doesn't add the log name to the status table. I believe you would have to implement this by yourself (i.e. create a job_status macro in an autocall library and then call this macro in the post-processing of the job). The DIS generated %etls_sendJobStatus() should give you a good starting point for such a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are the log names created? Are you passing them as parameter when scheduling the jobs? &lt;/P&gt;&lt;P&gt;Not sure in the moment how to retrieve the log name during batch execution - but I'm sure we can find out if you want to go down this path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 06:59:50 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2011-06-28T06:59:50Z</dc:date>
    <item>
      <title>Capture log file name in monitoring process:</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21821#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of DIS jobs that are scheduled through Windows Scheduler and like to capture log files names (that are created under ..Lev1\SASApp\BatchServer\Logs directory) corresponding to each job into a table. Is there a method available that I can use at the end o the job to capture that? I am thinking of putting something in the 'Status Handling' part of the scheduled job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21821#M145</guid>
      <dc:creator>Halaku</dc:creator>
      <dc:date>2011-06-27T19:09:33Z</dc:date>
    </item>
    <item>
      <title>Capture log file name in monitoring process:</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21822#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As much as I know "Status Handling / send job status" doesn't add the log name to the status table. I believe you would have to implement this by yourself (i.e. create a job_status macro in an autocall library and then call this macro in the post-processing of the job). The DIS generated %etls_sendJobStatus() should give you a good starting point for such a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are the log names created? Are you passing them as parameter when scheduling the jobs? &lt;/P&gt;&lt;P&gt;Not sure in the moment how to retrieve the log name during batch execution - but I'm sure we can find out if you want to go down this path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21822#M146</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-06-28T06:59:50Z</dc:date>
    </item>
    <item>
      <title>Capture log file name in monitoring process:</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21823#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Patrick,&lt;/P&gt;&lt;P&gt;I am interested in capturing the log file name created by the SAS at run time. I have a macro in place that is called in Job Status Handling &amp;gt; Condition &amp;gt; Custom. This captures the rc values from job and transformation and populates a record in my Oracle table.&lt;/P&gt;&lt;P&gt;What I like to do is also capture the lof file name and insert into a column for each job run. I am wondering if there is any run-time variable that keeps the log file information I can use to do the intended task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Misbah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 13:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21823#M147</guid>
      <dc:creator>Halaku</dc:creator>
      <dc:date>2011-06-29T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Capture log file name in monitoring process:</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21824#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to try is to use the LOG option that will provide the name of the log file, which wont work if you are running interactively.&amp;nbsp; You can also specify the ALTLOG option if that helps.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 21:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Capture-log-file-name-in-monitoring-process/m-p/21824#M148</guid>
      <dc:creator>nar_sas</dc:creator>
      <dc:date>2011-07-13T21:26:58Z</dc:date>
    </item>
  </channel>
</rss>

