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 (June 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 11 Jun 2003 15:57:19 -0400
Reply-To:   Robert Abelson <rabelson@KAI-RESEARCH.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Robert Abelson <rabelson@KAI-RESEARCH.COM>
Subject:   Re: time
Content-Type:   text/plain

Ann,

There may be a better way, but this works:

numtime = input(substr(chartime,1,2) || ":" ||substr(chartime,3,2),time5.);

Bob Abelson KAI 6001 Montrose Rd. Suite 920 Rockville, MD 20852 T: 301-770-2730 F: 301-770-4183 rabelson@kai-research.com

"If you want to inspire confidence, give plenty of statistics. It does not matter that they should be accurate, or even intelligible, as long as there is enough of them."

-Lewis Carroll

> -----Original Message----- > From: Pandit, Ann [OMP Non J&J] [SMTP:APandit1@OMPUS.JNJ.COM] > Sent: Wednesday, June 11, 2003 3:48 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: time > > I have a text time variable recorded as 0530 for 5:30, how do I make it > SAS > numeric time 5:30 . > > Thanks, > > Ann Pandit


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