Home > Software > Data-Warehouse > DataStage
Interview Questions   Tutorials   Discussions   Programs   Discussion   

DataStage - How to generate surrogate key without using surrogate key stage?




1270
views
asked mar September 20, 2014 06:32 AM  

How to generate surrogate key without using surrogate key stage?


           

1 Answers



 
answered By vishnoiprem   0  

Use the following formula in Transformer stage to generate a surrogate key.

@PARTITIONNUM + (@NUMPARTITIONS * (@INROWNUM  – 1)) + 1

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert