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
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.