Find the Job Status

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Find the Job Status

Post by asitagrawal »

Hi All,

I am using DSRunJob() to run a job from the routine.

How do I check the job's completion status in the same routine ??

If I am trying to use DSGetJobInfo(),, then I get status as 3 i.e Running..

But I want to capture the job's finish status ... How ??
Share to Learn, and Learn to Share.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Look at the code of sdk routine, under Utility, UtilityRunJob(). It shows you how to get the jobstatus after running a job using DSRunJob()
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Status 3 is not Running. Status 0 is Running. Status 3 is Aborted. This suggests you have something else you need to investigate. Why is the job aborting?
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