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 (September 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 8 Sep 2005 21:45:43 -0400
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: how to keep the duplicate records only?
Comments: To: Wei Yi <wy78712@YAHOO.COM>


Assuming you have sorted your data by the key (e.g., id), then try something like the following:

data dupkeys; set x; by id; if not; run;

Art --------- On Thu, 8 Sep 2005 17:58:11 -0700, wei yi <wy78712@YAHOO.COM> wrote:

>Hello, All >I have a dataset with some duplicate records, I know >to use nodupkey to exclude the duplicate records. >But how I could keep all these duplicate records in a >file? > >Thanks, >Wei > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >

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