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 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 4 Aug 2010 16:21:02 -0400
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: convert a charater variable int SAS date
Comments:   To: Haiyan Chen <haiyan_c@YAHOO.COM>
Content-Type:   text/plain; charset=ISO-8859-1


There are a number of possibilities. One, for example, might be:

data have; informat have_date $10.; format want_date date9.; input have_date; want_date=input(have_date,anydtdte10.); cards; 2006.6.9 2007.12.24 2008.9.6 ;

HTH, Art -------- On Wed, 4 Aug 2010 13:15:18 -0700, haiyan chen <haiyan_c@YAHOO.COM> wrote:

>Hello, all, >� >I have a charater variable $10 read as '2006.6.9', representing 09Jun2006. >I want to convert it to any one of the SAS date format. Anyone has quick reference regarding this mind sharing? >� >Thanks a lot in advance. >Haiyan > > > >�

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