keyMgtGetNextValue

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
naren6876
Participant
Posts: 233
Joined: Mon Feb 07, 2005 7:19 pm

keyMgtGetNextValue

Post by naren6876 »

Hi All,

I am loading the same tables from different jobs at the same time.right now, i am using the database sequence and which is executing millions of times and that is overhead to the process now.

So, can i use the keyMgtGetNextValue sdk routine/transform to generate the surrogate key?

Please advice.

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

Post by chulett »

Yes, but with the 'multiple jobs, same table, same time' requirement, make sure you use the 'Concurrent' version.
-craig

"You can never have too many knives" -- Logan Nine Fingers
naren6876
Participant
Posts: 233
Joined: Mon Feb 07, 2005 7:19 pm

Post by naren6876 »

chulett wrote:Yes, but with the 'multiple jobs, same table, same time' requirement, make sure you use the 'Concurrent' version. ...
Thanks for the reply Craig.

I need to generate multiple sequence numbers for multiple tables withing the same job.

And the above mentioned sdk has argument called 'SequenceName'.

could you please guide me how to generate this Sequence's for multiple tables.

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

Post by chulett »

You will get a sequence generated for every unique 'name' you pass in. I generally use the target table (or sequence) name.
-craig

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