how to pass before job subroutine's return value to a job

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
savis
Premium Member
Premium Member
Posts: 27
Joined: Tue Apr 15, 2008 11:06 pm

how to pass before job subroutine's return value to a job

Post by savis »

Hi,

I want to fetch the max value from a table and use (max+1) as the satart value field in a surrogate key generator stage.

I thought of writing a script which retrieves the max value.

But how can i pass this value from script to the job?

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

Post by ray.wurlod »

Set the value returned from the script in a job parameter.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Ray is telling you it can't be done. You need to run the routine first. You can easily do this in a sequence. Next run your job and feed the return value in one job parameter.
Mamu Kim
Post Reply