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 (July 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 18 Jul 2006 04:55:13 -0700
Reply-To:   BK <byronkirby@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   BK <byronkirby@GMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: Convert a SAS date to a character value
Comments:   To: sas-l@uga.edu
In-Reply-To:   <1153158393.586911.296840@b28g2000cwb.googlegroups.com>
Content-Type:   text/plain; charset="iso-8859-1"

Usually when this happens the number you are trying to format is outside of the value range for dates...

Try the solution below, if it works then the value in your number field is the numeric string equivalent to the date... (Poor phrasing, sorry) like the number (20,060,716 - commas for emphasis), it's a date but cannot be read as a date it must be read like the character string 2006/07/16. I've seen this sometimes with data coming in from data entry

if put(srvdt,mmddyy10.)=:'*' then srvdt=input(put(srvdt,$z8.),yymmdd10.);

Byron

aaron.caldiero@gmail.com wrote: > When i attempt to use the PUT function i get a string of asterisks > instead of the characters in the format yymmdd8. that i need.


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