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 (August 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 12 Aug 2004 04:21:03 GMT
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: Keep Unique Records

You might be able to do it without using loops at all. For example, would the following accomplish your desired task:

proc sort data=Filecodes; by year f s m; run; data UniqueRecords; set Filecodes; by year f s m; if first.m and last.m; run;

Art ------- "x x" <sas_user2000@YAHOO.COM> wrote in message news:20040812034322.32183.qmail@web90007.mail.scd.yahoo.com... > 8.2 on WIN XP > > Hi all, > > I have a file (CODES) with about 20,000 records: > with: Year, F, S, M and U as variables. > > I just want to keep all the U where F, S and M are > unique for that YEAR. > > I know i need do loops but I just need a start to do > this.


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