GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  DataStage
Go To First  |  Previous Question  |  Next Question 
 DataStage  |  Question 60 of 119    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: 14    

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: 14    

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



 
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape