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 (January 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.


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