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 (September 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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