|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|
There may be a better way, but this works:
numtime = input(substr(chartime,1,2) || ":" ||substr(chartime,3,2),time5.);
6001 Montrose Rd.
Rockville, MD 20852
"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."
> -----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
> numeric time 5:30 .
> Ann Pandit