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...


i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question is how to get second duplicate record in datastage.

Answers were Sorted based on User's Feedback



i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question..

Answer / reddy

Source File/Table--->Transformer-->Target

Transformer stage:
---------------------------
Take two stage variables

sv-->Empno or Ename (drag and drop column(s))

sv1-->if Empno=sv or Ename=sv Then sv1+1 Else 1

in constraint --> sv1=2

u will get second duplicate record

Plz correct me if i am wrong...

Is This Answer Correct ?    2 Yes 0 No

i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question..

Answer / pavani

if we have n duplicates
source---->transformer-------->target.
in transformer we define 2 stage variables
if empno=stg_var2 then stg_var1+1 else 1------->stg_var1;
emp_no-------->stg_var2;

now the constraint for target is stg_var1=2

Is This Answer Correct ?    2 Yes 0 No

i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question..

Answer / narasimha rao k

By using Removeduplcate stage in datstage

This stage having avalabel Removeduplicate 1st and last you select last automatically apply to second duplicate data

Is This Answer Correct ?    6 Yes 6 No

i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question..

Answer / nish

remove duplicate-> retail last

Alternate MEthod: if there are only two occurences then sort stage-> descending-> remove duplicates

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Stage Interview Questions

How many types of sorting methods are available in datastage?

0 Answers  


How to use Environment variable's in datastage?(use of process)

1 Answers   CSC,


how to abort the job its matain duplicates?

0 Answers   TCS,


in sequtial file 2 columns avaliable, i want only one column load the target. for this we can do by modify and copy stage. But here when using modify stage (in property drop column1) until it is ok. if target is data set How to view the data. with out using data management. what is the reason for this. if any body know this answer plz tel me. thanks.

1 Answers   IBM,


What are the various kinds of the hash file?

0 Answers  


what is set mapping in datastage??

2 Answers   ADP,


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

10 Answers   Wipro,


how to capture rejected data by using join stage not for lookup stage. please let me know

3 Answers   Satyam,


How u implement the slowly changing dimensions if my source table is consisting of cid,cname,add,phno,email but i need to capture the changes for first three columns how u implement?

1 Answers   IBM,


How complex jobs are implemented in datstage to improve performance?

0 Answers  


IS FILE SET CAN SUPPORT I/P AND O/P LINK AT A TIME?

1 Answers  


what is meta data? Explain? Where it is used?

9 Answers  


Categories