| Date: | Wed, 29 Mar 2000 09:06:50 -0500 |
| Reply-To: | laurie_abell@DOFASCO.CA |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Laurie Abell <laurie_abell@DOFASCO.CA> |
| Subject: | Re: Making a SAS date a character string |
|
the put function should work..... here is an example that you can try (make
sure you store the character version in a new variable):
data test;
birth = '05Jun1960'd;
birthc = put(birth,mmddyy10.);
proc contents data=test;
proc print data=test;
format birth date9.;
run;
hope this helps!
Laurie
> -----Original Message-----
> From: EMRAIN [SMTP:emrain@AOL.COM]
> Sent: Wednesday, March 29, 2000 8:34 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Making a SAS date a character string
>
> Hi all,
>
> I need to know how to make a SAS date (xx/xx/xxxx) into a character string
> while retaining the xx/xx/xxxx form. I have used the put function to
> convert,
> but I get back the sas numeric for that date in a character format.
> Help!!!
>
> Ellen
|