Date: Wed, 3 Sep 2008 11:38:33 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: Picture format
Question is, do you really have time-variables? Not chracter variables
which look like time variable?
If that is the case, you should convert that to real time-variables:
data a;
x="16:23";
y="17:10:07";
tx=input(x,time10.);
ty=input(y,time10.);
put tx time8.;
put ty time8.;
run;
If you have already numeric time - variables, siply assign a wider time-
format. time8. should do what you want.
Gerhard
On Wed, 3 Sep 2008 08:12:49 -0700, Learner <pradev@GMAIL.COM> wrote:
>Hi,
>
>I have a time variable with hours and minutes for example, 16:20,
>2:27, 6:18 etc. I want to add zero if the length of the time variable
>is less than 5 like 02:27. Please let me know how to do this by using
>the picture format.
>
>Thank you,
>Learner
|