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 (January 2010, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 28 Jan 2010 16:50:47 -0800
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: Converting Numeric MMDDYY10. into 11. numeric
Comments: To: Sdlentertd <sdlentertd@gmail.com>
In-Reply-To:  <ab1232e7-b50a-4284-ab7c-cdbb437e1e57@b9g2000yqd.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

I think you may only need a format like: YYMMDDN8. e.g.,

data have; informat DateOld date9.; format DateOld mmddyy10.; input DateOld; cards; 3nov2009 ;

data want; set have; DateNew = put (DateOld, YYMMDDN8.); run;

HTH, Art ------------- On Jan 28, 6:10 pm, Sdlentertd <sdlente...@gmail.com> wrote: > I have this problem: > DateOld MMDDYY10. (numeric) format and looks like this 11/03/2009 > and I want to create a new date based on DateOld in this format > DateNew 11. (numeric) which will look like this 20091103 > > i am trying this but it doesn't work > DateNew = input( put (DateOld, 8.), YYMMDD8.); > Thanks for help.


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