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 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 14 Nov 2007 12:51:53 -0800
Reply-To:   "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Subject:   Re: Help with the date, please?
In-Reply-To:   <455E5B258922154FBE497F58237915C604A9E86D@XCH-NW-8V2.nw.nos.boeing.com>
Content-Type:   text/plain; charset=iso-8859-1

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of Schwarz, Barry A > Sent: Wednesday, November 14, 2007 12:27 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: Help with the date, please? > > But date. would still default to date7. which would produce a value in > 2020, not in 2006 as desired. >

Actually, no, it will in fact grab the whole date. If you run the code below, you will get the correct dates.

data d; format b c date9.; input a :$10. b date9. c : date.; cards; 26-Oct-06 26-Oct-06 26Oct2006 ; run;

proc print noobs; var a b c; run;

Dan

Daniel J. Nordlund Research and Data Analysis Washington State Department of Social and Health Services Olympia, WA 98504-5204


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