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 (December 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 4 Dec 2008 12:20:17 -0800
Reply-To:   Akshaya <akshaya.nathilvar@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Akshaya <akshaya.nathilvar@GMAIL.COM>
Subject:   Re: manipulating data
Comments:   To:
Content-Type:   text/plain; charset=ISO-8859-1

If the data is nicely sorted as in your example, then

Data have; input date mmddyy10.; month=month(date); format date mmddyy10.; cards; 01/15/2008 01/17/2008 01/26/2008 02/01/2008 02/05/2008 02/25/2008 ;

Data want; set have; by month; if last.month; Run;

Thanks! Akshaya

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