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 (September 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 26 Sep 2005 14:47:40 -0400
Reply-To:   Venky Chakravarthy <swovcc@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Venky Chakravarthy <swovcc@HOTMAIL.COM>
Subject:   Re: Convert text variable to SAS date
Comments:   To: Geode Steele <gshq0305@YAHOO.COM>

If it is a character field you should be able to read this with:

date9var = input(date9txt,date9.) ;

The first 9 digits are sufficient for the date9 informat to convert the string to a SAS date.

Venky Chakravarthy.

On Mon, 26 Sep 2005 11:40:11 -0700, Geode Steele <gshq0305@YAHOO.COM> wrote:

>Hi, All, > >I have a SAS file with one of the field is a character variable: Date: > >Date > >20SEP2000:00:00:00.000 >03MAR2003:00:00:00.000 > >I want to convert it to SAS date. How to do it. > >Thank you very much for your help! > >George > > >--------------------------------- >Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort.


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