<?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: Creating an Audit table in SAS DI 4.21 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128466#M1683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;Try using Status handling to get all this information and capture this information in dataset.you will get &lt;/P&gt;&lt;P&gt;Job End Time&lt;/P&gt;&lt;P&gt;Job Start Time&lt;/P&gt;&lt;P&gt;Job Return Code&lt;/P&gt;&lt;P&gt;Job Name&lt;/P&gt;&lt;P&gt;Job Status and many more.Hope this helps..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Status.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2104_Status.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 04:44:32 GMT</pubDate>
    <dc:creator>shivas</dc:creator>
    <dc:date>2012-05-30T04:44:32Z</dc:date>
    <item>
      <title>Creating an Audit table in SAS DI 4.21</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128464#M1681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement to create a Audit log table, to capture the following details&lt;/P&gt;&lt;P&gt;1) JobId&lt;/P&gt;&lt;P&gt;2) JobName&lt;/P&gt;&lt;P&gt;3) StartTime&lt;/P&gt;&lt;P&gt;4) EndTime&lt;/P&gt;&lt;P&gt;5) Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This basically is used to capture details of the the current Job, so that this can be used&lt;/P&gt;&lt;P&gt;to track details about the Job at all times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prakash Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128464#M1681</guid>
      <dc:creator>blindgaurdien16</dc:creator>
      <dc:date>2012-05-29T16:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Audit table in SAS DI 4.21</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128465#M1682</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;If I am correct the first four has an corresponding automatic variable on a DI.&lt;/P&gt;&lt;P&gt;JobId - jobID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JobName - etls_jobName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the StartTime and EndTime, you can probably use the date time function. Update start time on the pre-process and update end time on the post process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Status, you can update your audit table on the post-process code and check the &amp;amp;syserr or &amp;amp;sysrc value. This is a little tricky since if you get some errors, job might abort and it might not reach the portion of the post-process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 02:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128465#M1682</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2012-05-30T02:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Audit table in SAS DI 4.21</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128466#M1683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;Try using Status handling to get all this information and capture this information in dataset.you will get &lt;/P&gt;&lt;P&gt;Job End Time&lt;/P&gt;&lt;P&gt;Job Start Time&lt;/P&gt;&lt;P&gt;Job Return Code&lt;/P&gt;&lt;P&gt;Job Name&lt;/P&gt;&lt;P&gt;Job Status and many more.Hope this helps..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Status.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2104_Status.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 04:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-an-Audit-table-in-SAS-DI-4-21/m-p/128466#M1683</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-05-30T04:44:32Z</dc:date>
    </item>
  </channel>
</rss>

