Date: Mon, 3 Mar 2008 01:23:44 -0800
Reply-To: Joep Steeman <jsteeman@BUSINESSDECISION.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joep Steeman <jsteeman@BUSINESSDECISION.COM>
Organization: http://groups.google.com
Subject: Re: Convert a SAS date in format 12APR08
Content-Type: text/plain; charset=ISO-8859-1
On 3 mrt, 10:04, Flowers <nfleury.i...@gmail.com> wrote:
> Hello,
>
> I want convert a SAS date in this format (example :12APR08)
>
> I try :
>
> put (date,date7.);
>
> but it is not good !!
>
> kinds regards.
This works for me:
9 data _null_;
10 d = date();
11 put d= date7.;
12 dchar = put(d, date7.);
13 put dchar=;
14 run;
d=03MAR08
dchar=03MAR08
Best regards,
Joep
|