Date: Tue, 13 Jun 2000 12:21:21 -0700
Reply-To: "Ruben J. Kovalcik" <rjk2@CET.NAU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Ruben J. Kovalcik" <rjk2@CET.NAU.EDU>
Organization: Northern Arizona University
Subject: substr
Content-Type: text/plain; charset=us-ascii
Hi, can i make a variable called start_hour by using the substr function
on a time (time5) variable?
the time variable is called sas_beg1(8:00 ,12:00)
ex.
start_hour1=substr(sas_beg1,1,2)
and i would like it to return either 08 or 8 and 12 for the start_hour
variable value.
thank you for substr help. Ruben
|