Hi,
Have anyone used DB Sequence to generate Surrogate key in SCD stage.
i created a sequence in DB2 using..
CREATE SEQUENCE SEQ_SCDEMP2 AS DECIMAL(4,0) START WITH 1 INCREMENT BY 1 MINVALUE 1 NO MAXVALUE NO CYCLE NO CACHE ORDER
Then i called this in SCD stage in the surrogate key tab with the name of sequence, SEQ_SCDEMP2 and the rest of connection details.
Finally in the output tab against surrogate key i gave nextsurrogatekey(), function.
Is there anything elseI need to do.But I am getting a compile error while compiling this job. Seen similar posts in this forum but of no help. Kindly reply.
Thanks in advance,
- Shamail
DB Sequence usage in SCD stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 64
- Joined: Wed Sep 26, 2007 6:52 am
- Location: Syracuse ,NY