Hi
I am runing a master sequence. I would like to capture the start time of the job and End time of the job in a file or table.
How to accomplish this?
Job Start TIme and Job End Time
Moderators: chulett, rschirm, roy
Job Start TIme and Job End Time
Pradeep Kumar
-
- Premium Member
- Posts: 252
- Joined: Mon Sep 19, 2005 10:28 pm
- Location: Melbourne, Australia
- Contact:
A long time ago, I tried running the BuiltIn DSJobReport subroutine as the last activity of a Job Sequence, instead of from the After-Job subroutine of a server job, as is intended.
From memory, it mostly worked, except the status showed as RUNNING, insteead of FINISHED. I chucked in the idea around then. I can't remember whether it showed an accurate Job End Time though. Give it a go.
From memory, it mostly worked, except the status showed as RUNNING, insteead of FINISHED. I chucked in the idea around then. I can't remember whether it showed an accurate Job End Time though. Give it a go.
Ross Leishman
Find the list of jobs in Jobsequence, and use . Or simple use the Popular EtlStatus from KimDuke homepage.
Code: Select all
dsjob -report <project> <jobname> BASIC
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you use DSGetJobInfo() from an after-job subroutine you can request the "interim status" - that is, the status with which the job will finish assuming it's not aborted by the after-job subroutine's ErrorCode argument.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.