How to populate Jobrunid for each run

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
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

How to populate Jobrunid for each run

Post by reddy »

Hi,

We would like to populate Jobrunid unique number for all records during the job run.
like for first run it has to populated with 001,second run 002 like that.

Could you please help me on how to get the unique data for all records.

I appreciate your help and time.

Regards
Narasa
kris
Participant
Posts: 160
Joined: Tue Dec 09, 2003 2:45 pm
Location: virginia, usa

Re: How to populate Jobrunid for each run

Post by kris »

reddy wrote:We would like to populate Jobrunid unique number for all records during the job run.
like for first run it has to populated with 001,second run 002 like that.


You can use any sequence generator functionality here.
Either DataStage generated or Database Sequence, but you need to make sure you call it only once in the job and assign that value to a variable or something then use that on all the rows in that job.
~Kris
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: How to populate Jobrunid for each run

Post by gateleys »

The only way, I would think, is to store the value in some file/table, and increment it during each new run.
gateleys
Post Reply