How to generate surrogate key without using surrogate key stage?

Answer Posted / sudhir

Surrogatekey is nothing but a unique number to identify the
record in datamart. So just use a counter in StageVariable
of Transformer. Keep incrementing the counter by one for
every new inserts. This would form a surrogatekey.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define meta stage?

873


What is ibm datastage flow designer?

787


Difference between ‘validated ok’ and ‘compiled’ in data stage?

774


What are the benefits of datastage?

819


how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara

466






How do you start developing a datastage project?

749


How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...

1163


How complex jobs are implemented in datstage to improve performance?

693


What is a merge?

757


how to add a new records into source?

1610


Explain entity, attribute and relationship in datastage?

732


Why do you need stage variables?

802


Have you used Unstructured data?

920


How to reverse the string using unix?

2928


What are the job parameters?

816