Date: Fri, 22 Aug 2003 17:58:54 +0100
Reply-To: Roland <roland@RASHLEIGH-BERRY.FSNET.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roland <roland@RASHLEIGH-BERRY.FSNET.CO.UK>
Organization: Universe Monitors
Subject: Re: Date Conversion
"Archana" <archana_gs@mailcity.com> wrote in message
news:1238388.0308220848.613f6e05@posting.google.com...
> Hi,
>
> I have date in the form 12-nov-2001. I need to convert this into sas
> date format.Please let me know.
>
> Thanks
> Archana
37 data _null_;
38 char='12-Nov-2001';
39 date=input(compress(char,'-'),date9.);
40 put date=;
41 format date date9.;
42 run;
date=12NOV2001
NOTE: DATA statement used:
real time 0.00 seconds
|