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 (May 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 12 May 2000 20:54:41 -0400
Reply-To:   claude.rheaume@videotron.ca
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Claude Rhéaume <claude.rheaume@VIDEOTRON.CA>
Subject:   Re: First and last record in the dataset?
Content-Type:   text/plain; charset=iso-8859-1

You can use also If _N_ = 1 for the first record and

Infile xxxx END=ENDX ;

If Endx Then Output ; for the last record

Bye

Jing Liu a écrit :

> How can I just extract the first and the last recors from one dataset? E.g: > > SSD1 > A B > 01 a > 02 b > 03 c > 04 d > > What i want to do is to get an dataset with following two records: > > SSD2 > A B > 01 a > 04 d > > Any expert's suggestion is appreciated in advance! > > Jing > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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