Surrogate_Key_Generator

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
daniele
Participant
Posts: 14
Joined: Fri Oct 12, 2012 12:23 am

Surrogate_Key_Generator

Post by daniele »

Hi ,
I used Surrogate_Key_Generator with source oracle sequence,but
I need also sequence.currval , how can I do it?
jerome_rajan
Premium Member
Premium Member
Posts: 376
Joined: Sat Jan 07, 2012 12:25 pm
Location: Piscataway

Re: Surrogate_Key_Generator

Post by jerome_rajan »

You need to be more elaborate. :?
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn

Life is really simple, but we insist on making it complicated.
daniele
Participant
Posts: 14
Joined: Fri Oct 12, 2012 12:23 am

Post by daniele »

In loop Condition I use If (MyCondition)Then SurrogateKeyGen else
"current val of sequence oracle"

SurrogateKeyGen generate correctly nextval of sequence but in expression

how can I get "current val of sequence oracle" ?

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

Post by chulett »

You really should have it stored somewhere, failing that you could select CURRVAL rather than NEXTVAL from your sequence.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply