|
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.
|