Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to generate surrogate key without using surrogate key stage?

Answers were Sorted based on User's Feedback



How to generate surrogate key without using surrogate key stage?..

Answer / venkatesh.m

by using the transformer we can do it.To generate seqnum
there is a formula by using the system variables
ie
[@partation num + (@inrow num -1) * @num partation

Is This Answer Correct ?    13 Yes 0 No

How to generate surrogate key without using surrogate key stage?..

Answer / murali

yes ur right but we have another way to generate s key by
using transformer .in transformer we have a surrogate key tab
click the skey tab in that we hav state file and db sequence
these r used for generate and hold the s key value

Is This Answer Correct ?    5 Yes 0 No

How to generate surrogate key without using surrogate key stage?..

Answer / 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

How to generate surrogate key without using surrogate key stage?..

Answer / sreenu

Using the Routine
KeyMgtGetNextVal
KeyMgtGetNextValConn

Is This Answer Correct ?    0 Yes 0 No

How to generate surrogate key without using surrogate key stage?..

Answer / nish

sudhir your answer is wrong. just incrementing will not work in a multinode config.

the answers that utilize the @partition num variable are correct

Is This Answer Correct ?    0 Yes 0 No

How to generate surrogate key without using surrogate key stage?..

Answer / snehasis

By using system variable in transformer stage
like 1) create a stage var(SVK).
2) go to stage var. property type in the initial value tab as @partionnum - @numpartion+1
3) in the stage var. derivation type SVK+@numpartition
 

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Data Stage Interview Questions

in sequtial file 2 columns avaliable,iwant only one column load the target how do it.

10 Answers   Wipro,


How to create environments and call them? What is the use defined variables?

2 Answers   HCL, ME,


insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 100 records target?

5 Answers  


When we will go for Data elements?

3 Answers   TCS,


Name the command line functions to import and export the DS jobs?

0 Answers  


How to remove ctrl M or(^M) characters in file using Sequential File stage?

2 Answers   Bank Of America, Satyam,


eno ename esal acct1 acct2 amount1 amount2 100 suresh 10000 sbi1 sbi2 1000 2000 this is our sourse data i would loke to disply like this eno ename esal acct amount 100 suresh 10000 sbi1 1000 100 suresh 10000 sbi2 2000

2 Answers   HCL,


What is the difference between orabulk and bcp stages?

0 Answers  


i/p 1,a,1000 2,b,2000 3,c,3000 i want to get o/p as o/p 1,a,3000 2,b,4000 3,c,5000 how it can be done on using datastage?

5 Answers   HSBC,


I have scenario like this seq file --> transformer --> sort stage --> dataset In this job which prtitioning technique you are using and why???

3 Answers   CTS, IBM,


how to find out number of records imported into source file?

1 Answers  


How to write a left outer join condition by using Transformer stage in server jobs? Could any one help me?

1 Answers  


Categories