Doubt regarding surrogate key.
Posted: Wed May 10, 2006 5:37 am
Hi everyone,
I am working on Datastage 7.5.1 server version running on Unix with DB2 database.DS Client is on windows XP.
When i use the inbuilt fuction KeyMgtGetNextValue(%dummy%) in order to generate a surrogate key, it works fine.For example for 5 records the last key generated is 5.
However when i run the job again, the next key that is generated is 6 onwards and it does not reset the value and assign the key value 1.
I would like to know how will i be able to reset the value of the surrogate key in the memory.Is there some function which would help me in this regard?
Thanks in advance.
Cheers!
I am working on Datastage 7.5.1 server version running on Unix with DB2 database.DS Client is on windows XP.
When i use the inbuilt fuction KeyMgtGetNextValue(%dummy%) in order to generate a surrogate key, it works fine.For example for 5 records the last key generated is 5.
However when i run the job again, the next key that is generated is 6 onwards and it does not reset the value and assign the key value 1.
I would like to know how will i be able to reset the value of the surrogate key in the memory.Is there some function which would help me in this regard?
Thanks in advance.
Cheers!