LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2000, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: emrain@AOL.COM

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


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