Date: Fri, 11 Jan 2002 13:21:13 -0500
Reply-To: Robert Virgile <virgile@MEDIAONE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Virgile <virgile@MEDIAONE.NET>
Subject: Re: max(x)
Content-Type: text/plain; charset="iso-8859-1"
One final data step, adding the maximum of x to each observation:
data addmax;
do until (end1);
set original (keep=x) end=end1;
if z < x then z = x;
end;
do until (end2);
set original end=end2;
output;
end;
run;
I'm not really sure if this will be faster or slower than the SQL approach.
Bob V.
|