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 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 6 Aug 1996 12:45:00 EST
Reply-To:     Jin Qian <0002127673@MCIMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Jin Qian <0002127673@MCIMAIL.COM>
Subject:      Re: how to use last.var
Comments: To: Philip M Linerode <linerode@tenet.edu>

-- [ From: JIN QIAN * EMC.Ver #2.03 ] --

PHIL:

You can create a data set and only choose those records with last.var=1.

DATA ONE; SET ORIGINAL; BY MYKEYVAR; . . . IF LAST.MYKEYVAR; . . . RUN;

Hope this help.

Jim J. Qian COMSYS Technical Services

-------- REPLY, Original message follows --------

> Date: Wednesday, 07-Aug-96 12:03 AM > > From: Philip M Linerode \ Internet: (linerode@tenet.edu) > > I have a number of student records. If a student moved during the year, > the student is listed a second time. How do I get a set with the only or > the last one of the id by-variable? > > I know nodupkey keeps the first. > > TIA, > > Phil Linerode > Northside ISD > San Antonio, TX >

-------- REPLY, End of original message --------


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