Setting User Status of Job Activity

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
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Setting User Status of Job Activity

Post by mydsworld »

Please let me know how to set 'User Status' expression in a Job activity stage.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

By invoking the DSSetUserStatus() function within a job invoked by the Job activity. This is easy to do if the job is a server job; for a parallel job you will need to create a parallel routine as an interlude to DSSetUserStatus().
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Rubu
Premium Member
Premium Member
Posts: 82
Joined: Sun Feb 27, 2005 9:09 pm
Location: Bangalore

Post by Rubu »

Why would you like to set the job status in Job activity?

If you want to pass different statuses, when the Sequence is called at separate instances, you can make a provision of a Job Parameter in the job and write a job control routine or before routine to update the job status to the value in the parameter.
Regards
Palas
Post Reply