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 (February 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 26 Feb 2008 10:00:36 -0500
Reply-To:     "Mohamedshah, Yusuf" <Yusuf.Mohamedshah@FHWA.DOT.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Mohamedshah, Yusuf" <Yusuf.Mohamedshah@FHWA.DOT.GOV>
Subject:      SAS Date Values conversion
Content-Type: text/plain; charset="US-ASCII"

Dear All

I have a SAS dataset with a variable called acc_date with a Char 6 values as follows:

110305 062705 020205 020205 051005 071705 091405 100305 110605 110305 102305 082505 050405 010705 020705 052705 032105 040105 051905 070305 083005 092405 062505 072605 100305 ;

I want to create a new variable that will have SAS date values as follows:

Acc_date New_acc_date 110305 03NOV2005 062705 27JUN2005 020205 02FEB2005 020205 02FEB2005 051005 05OCT2005 071705 and so on 091405 100305 110605 110305 102305 082505 050405 010705 020705 052705 032105 040105 051905 070305 083005 092405 062505 072605 100305 ;

How can I do that?

Thanks

Yusuf Mohamedshah Manager, HSIS Lab Lendis Corporation Federal Highway Administration McLean, VA 22101 Phone: (202) 493 3464 Fax: (202) 493 3374

email: yusuf.mohamedshah@fhwa.dot.gov Web page: www.hsisinfo.org


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