Surrogate Key

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
EssEss05
Participant
Posts: 5
Joined: Mon Jul 30, 2007 4:34 am
Location: India

Surrogate Key

Post by EssEss05 »

Hi
I am working with Ascential datastage parallel Extender (7x), I want to know that how can we generate the surrogate key from the highest value of the last run.I have tried with surrogate key generator stage but its not possible to specify the highest value of last run.

Can I use transformer stage for the same?

Can any one help me...?

Thanks in advance
EssEss
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Do an exact search on "generate surrogate key" in Parallel forum. See if one of those posts help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Surrogate Key

Post by chulett »

EssEss05 wrote:I have tried with surrogate key generator stage but its not possible to specify the highest value of last run.
Not true. Read the documentation a little more carefully.
-craig

"You can never have too many knives" -- Logan Nine Fingers
EssEss05
Participant
Posts: 5
Joined: Mon Jul 30, 2007 4:34 am
Location: India

Post by EssEss05 »

Maveric wrote:Do an exact search on "generate surrogate key" in Parallel forum. See if one of those posts help.

Hi,

I can generate the surrogate key by using the transformer stage( DS Transform-----> KeyMgtGetNextVal), but that is only in the server job.

Can I do the same in the parallel transformer stage? Because in my parallel transformer stage DS Transform is not available......

Pls help me.......


Thanks & Regards
EssEss
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Surrogate Key stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Use surrogate key stage.You can set start value as job parameter. Did you try that?

Compute your max key from the previous run and pass it as a job parameter. Set start value value to the job parameter.
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Post by swades »

Post Reply