> -----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.
format b c date9.;
input a :$10. b date9. c : date.;
26-Oct-06 26-Oct-06 26Oct2006
proc print noobs;
var a b c;
Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA 98504-5204