05-29-2012 12:46 PM
We have a requirement to create a Audit log table, to capture the following details
This basically is used to capture details of the the current Job, so that this can be used
to track details about the Job at all times.
05-29-2012 10:04 PM
If I am correct the first four has an corresponding automatic variable on a DI.
JobId - jobID
JobName - etls_jobName
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.
For the Status, you can update your audit table on the post-process code and check the &syserr or &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.
Hope this helps.
05-30-2012 12:44 AM
Try using Status handling to get all this information and capture this information in dataset.you will get
Job End Time
Job Start Time
Job Return Code
Job Status and many more.Hope this helps..