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 (October 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Thomas <tythong@YAHOO.COM>
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


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