We have a business need to generate an email with Fatal log entries for latest invocation of the job (if the DataStage job has aborted). This job will be running several times day.
We are planning to create a script for this. To extract fatal log entries ... we can use
1.
Code: Select all
dsjob -logsum -type FATAL <ProjectNm> <JobNm>
This extracts 'All' fatal log entries available (i.e it includes information from previous invocations also).
OR
2.
Code: Select all
dsjob -lognewest <ProjectNm> <JobNm> FATAL
This extracts 'Last' fatal log entry for the latest invocation only.
Please advise, if there is another approach/command to extract all the fatal log entries for latest invocation of the job.