Sequence number generation issue in target database

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

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

Post by chulett »

Which is not as simple as it sounds.
-craig

"You can never have too many knives" -- Logan Nine Fingers
123gopal
Participant
Posts: 16
Joined: Sat Feb 09, 2013 11:41 am
Location: chennai

Post by 123gopal »

Sequence numbers can be generated in Datastage server job transformer using certain fuctions like
select ... ->funtions tab->dstransform->sdk->keymgt->select given below functions
-KeyMgtGetNextVal(seq name)
-KeyMgtGetNextValConn(seq name)

Sequence numbers can be generated in Datastage parallel job transformer using certain fuctions like
-@Inrownum
-@Outrownum
if we use this function also generate the number but can't mention column name
otherwise can be use surrogate key generator stage
mgplk
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi Gopal,
Thanks for your reply but unfortunatly i can not use Server Jobs in my project.

If you go through this post,i am also generationg sequence number using @INROWNUM,but my question here is bit different.
Request you to please go through post properly and help me to reslove it.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

prasson_ibm wrote:i can not use Server Jobs in my project.
Why not?

And in any case, these functions are available in the BASIC Transformer stage (available in parallel jobs), or you could package some server job components into a server Shared Container and use that in a parallel job.

On those bases it was reasonable to introduce the key management routines.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply