sequence generated for the primary key

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
praveenala
Participant
Posts: 6
Joined: Fri Jul 08, 2005 7:36 am

sequence generated for the primary key

Post by praveenala »

Hi,

I have sequence generated for the primary key but if I want to start the initial value from 100 and increment by 1 how can I achieve it.

Please do reply ASAP

Thanks in advance

Regards,
Praveen
morneh
Participant
Posts: 17
Joined: Wed Jan 28, 2004 8:09 am
Contact:

Post by morneh »

Execute the following from Administrator:

UPDATE SDKSequences USING DICT VOC SET F1 = '100' WHERE @ID = 'Your_Sequence_Name';

Then just use KeyMgtGetNextValue('Your_Sequence_Name') in the derivation for your primary key.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

praveenala, Please supply the DS version OS and is this Server or EE related.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply