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 (July 2009, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 30 Jul 2009 09:00:27 -0700
Reply-To:     bufino <qotsa79@HOTMAIL.CO.UK>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         bufino <qotsa79@HOTMAIL.CO.UK>
Organization: http://groups.google.com
Subject:      text variable to numeric
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

Hi. I've just created a text variable which looks like a date variable by disaggregating the following and reassembling it:

date year month day 29/04/2009 2009 4 29

the trouble is the 'date' is not in a date format but a text format.

i've tried these two options

format date2 ddmmyyyy8.; length date2 ddmmyyyy8.;

but none of them works.

Any suggestions?

Thanks


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