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 (January 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 22 Jan 1999 13:13:10 -0800
Reply-To:   "Lanning, Chris" <clanning@AMGEN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Lanning, Chris" <clanning@AMGEN.COM>
Subject:   Re: how to read mmddyyyy
Content-Type:   text/plain

We use the mmddyy10. format to print out dates of the form (01/01/1999). I am not sure if the corresponding informat works, but I think it would.

So I tested it. The following code worked just fine;

data temp; input date $10.; date2 = input(date, mmddyy10.); cards; 01/01/1999 ;

proc print;

run;

Chris Lanning Trilogy Consultant clanning@amgen.com 1-805-447-0634 SAS Consulting is my life!!!

> ---------- > From: Berryhill, Timothy[SMTP:TWB2@PGE.COM] > Reply To: Berryhill, Timothy > Sent: Friday, January 22, 1999 1:00 PM > To: SAS-L@UGA.CC.UGA.EDU > Subject: Re: how to read mmddyyyy > > I would expect MMDDYY8. to read any of 12/22/98, 122298 or 12221998 as the > same value. > Tim Berryhill - Contract Programmer and General Wizard > TWB2@PGE.COM or http://www.aartwolf.com/twb.html > Frequently at Pacific Gas & Electric Co., San Francisco > The correlation coefficient between their views and > my postings is slightly less than 0 > > > > ---------- > > From: Frank Schiffel[SMTP:SchifF@MAIL.HEALTH.STATE.MO.US] > > Reply To: Frank Schiffel > > Sent: Friday, January 22, 1999 12:52 PM > > To: SAS-L@UGA.CC.UGA.EDU > > Subject: how to read mmddyyyy > > > > anybody know what the format and informat for this data is? I'd like to > > change it to a SAS date without breaking it into month day year then > > putting the pieces back together after I check the century year. > > I'm using 6.12. and haven't seen mmddyyyy in the documentation we have > > around here. > > > > thanks. > > > > Frank Schiffel > > Research Analyst III > > Bureau of Health Resource Statistics > > State Center for Health Statistics > > 920 Wildwood Drive > > PO Box 570 > > Jefferson City Missouri 65102-0570 > > (573) 751-6279 > > FAX (573) 526-4102 > > > > visit our website at: http://www.health.state.mo.us/ > > > > ! > > >


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