STAGESTARTTIMESTAMP , STAGEENDTIMESTAMP
Moderators: chulett, rschirm, roy
STAGESTARTTIMESTAMP , STAGEENDTIMESTAMP
I need to get the Stage Start timestamp and End Time stamp as part to log the timings and statuses of the each stage in my job.
I am proving in Transformer stage where it write to a Seg log file
DSGetStageInfo(DSJ.ME, DSStageName,DSJ.STAGESTARTTIMESTAMP)
DSGetStageInfo(DSJ.ME, DSStageName,DSJ.STAGEENDTIMESTAMP)
start time it is populating but End Timestamp coming as 0. Any ideas why it is coming.
Then i changes from Stage to Job level using DSJ.JOBSTARTTIMESTAMP and DSJ.JOBLASTTIMESTAMP. with Job Last Timestamp i am not able to comple the job.
Any input is appreciated!
I am proving in Transformer stage where it write to a Seg log file
DSGetStageInfo(DSJ.ME, DSStageName,DSJ.STAGESTARTTIMESTAMP)
DSGetStageInfo(DSJ.ME, DSStageName,DSJ.STAGEENDTIMESTAMP)
start time it is populating but End Timestamp coming as 0. Any ideas why it is coming.
Then i changes from Stage to Job level using DSJ.JOBSTARTTIMESTAMP and DSJ.JOBLASTTIMESTAMP. with Job Last Timestamp i am not able to comple the job.
Any input is appreciated!
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Don't do it in the Transformer stage, which is still running when you execute the function calls. Do it in an after-job subroutine or in a routine executed after the job finishes completely (probably invoked from a job sequence).
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can see this most easily in the job log. Look for where the "active stage finishing" messages appear. They tend to bunch just ahead of the "job finishing" message.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
How about viewtopic.php?t=91146&highlight=dsj+jobstarttimestamp Do an exact search on JOBSTARTTIMESTAMP. Should show you a lot of code already posted. I would imagine STAGESTARTTIMESTAMP is not much different.
Mamu Kim