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