GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  DataStage
Go To First  |  Previous Question  |  Next Question 
 DataStage  |  Question 60 of 140    Print  
How do you remove duplicate records from a file and capture the rejected records in a separate file.

  
Total Answers and Comments: 5 Last Update: May 29, 2008     Asked by: infinity 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 01, 2007 04:21:30   #1  
vermarah Member Since: March 2007   Contribution: 1    

RE: How do you remove duplicate records from a file an...
You can do this with help of Lookup
 
Is this answer useful? Yes | No
August 03, 2007 02:55:02   #2  
Dharmendra        

RE: How do you remove duplicate records from a file an...
In parallel DS we can use Duplicate removal Stage to avoid the deplicate records.
where as in server DS we have to use lookup

 
Is this answer useful? Yes | No
November 19, 2007 07:00:41   #3  
Fanguna        

RE: How do you remove duplicate records from a file an...

Other than remove duplicate stage we can also use aggregator stage to count the number of records exist for the key columns.If more than one record exist for the key column then they are considered as duplicate records and using transformer we can set a stage variable as 'COUNT' and check if 'COUNT>1'.If so using a constraint reject that duplicate records into reject file.


 
Is this answer useful? Yes | No
January 17, 2008 01:32:36   #4  
nagoosk Member Since: November 2007   Contribution: 15    

RE: How do you remove duplicate records from a file and capture the rejected records in a separate file.
we can remove duplicate records by specifying the one of the column in target stage as key column
 
Is this answer useful? Yes | No
May 29, 2008 10:28:17   #5  
nagoosk Member Since: November 2007   Contribution: 15    

RE: How do you remove duplicate records from a file and capture the rejected records in a separate file.
sort the records using the key field.In sort stage put "key change column true".Then zero will be assigned to the duplicate records.then put a condition as which is record is zero then send it to reject link
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape