LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Nov 2000 18:24:00 -0500
Reply-To:     HERMANS1 <HERMANS1@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         HERMANS1 <HERMANS1@WESTAT.COM>
Subject:      Re: SAS Date
Comments: To: jenny.howser@SOFTHOME.NET
Content-Type: text/plain; charset=US-ASCII

Use the INPUT() function in a datastep or SQL statement:

dateSAS=input(DATE,mmddyy8.); or input(DATE,mmddyy8.) as dateSAS

For this to work, of course, the text values have to fit the SAS informat mmddyy8. (though not exactly in all cases, since the informat usually handles single digit month or day values).

Sig

-----Original Message----- From: jenny.howser@SOFTHOME.NET at Internet-E-Mail Sent: Friday, November 10, 2000 10:59 PM To: SAS-L@LISTSERV.UGA.EDU at Internet-E-Mail Subject: SAS Date

Dear SAS users:

I have a text field called DATE and the data looks like this:

DATE 10/25/00 11/01/00 09/12/00

I would like to convert that text field into SAS date. Could you please show me how to do it.

Thanks,

Jennifer Howser

Sent via Deja.com http://www.deja.com/ Before you buy.


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