Date: Thu, 7 Oct 2004 09:45:07 -0500
Reply-To: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Subject: Re: Date Format
Content-Type: text/plain; charset="us-ascii"
Thomas,
data one;
input Coname $2. date ddmmyy10. prc;
cards;
a 22/01/2002 10
b 10/05/2004 25
c 08/02/2003 15
;
run;
data two;
input Coname $2. date yymmdd8. prc;
cards;
d 20020122 5
e 20040510 30
f 20030208 25
;
run;
HTH
Toby Dunn
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Thomas
Sent: Thursday, October 07, 2004 9:36 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Date Format
Hi all,
May I know how to read the following date into SAS format (YYYYMMDD)
using
infile/input statement so that I can have the consistent date format
throughout?
Thank you very much!
Thomas
(1)
Coname date prc
a 22/01/2002 10
b 10/05/2004 25
c 08/02/2003 15
(2)
Coname date prc
d 20020122 5
e 20040510 30
f 20030208 25
|