Job status

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kamesh
Participant
Posts: 72
Joined: Tue May 27, 2003 1:47 am

Job status

Post by kamesh »

I need to update job control table with job name, starttime, endtime, job status. Please anyone let me know how can do this.. I want this routine to call in sequencer not in before after routine for each job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No problem. Probably easiest is to create another job - a server job is recommended, since only one row needs to be processed. Use a job parameter for the job status, assigned its value from the $JobStatus activity variable of the upstream job. Use another job parameter for the name of the job upon which you are reporting. Most of the other data can be obtained through DataStage macros, or you could create your own routine to invoke DSGetJobInfo() enough time to return all the required information.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply