Mimic KeyMgtGetNextValueConcurrent routine
Posted: Wed Jun 15, 2005 6:26 pm
I would like to get opinion from Gurus on mimicing Key management routines.
We have a sequence table which is very similar to the one that Ascential DataStage Key management routines use to manage the key values.
The structure of our sequence table is
SEQ_NAME
INITIAL_VALUE
CURRENT_VALUE
INCREMENT_VALUE
MAX_VALUE
We want to access 4 or 5 sequence names from the above sequence table in one server job. So we would like to mimic the key management routines which accepts a sequence name and it reads the current value and increments it to increment value, updates the sequence table and returns the incremented value.
Is this something doable using Ascential BASIC language? If anyone has done similar stuff, I would appreciate if they can share their code and give pointers.
Thanks for your time,
-Anil
We have a sequence table which is very similar to the one that Ascential DataStage Key management routines use to manage the key values.
The structure of our sequence table is
SEQ_NAME
INITIAL_VALUE
CURRENT_VALUE
INCREMENT_VALUE
MAX_VALUE
We want to access 4 or 5 sequence names from the above sequence table in one server job. So we would like to mimic the key management routines which accepts a sequence name and it reads the current value and increments it to increment value, updates the sequence table and returns the incremented value.
Is this something doable using Ascential BASIC language? If anyone has done similar stuff, I would appreciate if they can share their code and give pointers.
Thanks for your time,
-Anil