LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 11 Mar 2008 15:32:02 -0700
Reply-To:     shanky <shankardasm@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         shanky <shankardasm@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: creating single observation from multiple observations
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

Hi Nia,

You could try something like this:

proc sql; create table need as select id,time,age,max(var1) as var1 ,max(var2) as var2 from have group by id,age having max(monotonic())=monotonic() order by id,age; quit;

Hope this helps; Shanky


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