LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 3 May 2005 16:15:37 -0400
Reply-To:   "Fehd, Ronald J" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J" <rjf2@CDC.GOV>
Subject:   Re: Find & remove duplicate observations
Content-Type:   text/plain; charset="us-ascii"

> From: Myra > > I have a dataset with over 83000 records. About 2200 of those > observations are duplicates. How can I find duplicate > records and remove them? Could I output the duplicates into > another dataset?

you'll want to squint as you read and comprehend the difference between the nodupkey and noduprecs

RTFM: NODUPKEY option Proc Sort statement

PROC Sort data = Lib._83000 out = Work._81000 %*either; nodupkey %*or; noduprecs %*and last:; DUPOUT = SAS-data-set ; by <IdList>;

hth

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov


Back to: Top of message | Previous page | Main SAS-L page