|Date: ||Tue, 30 Mar 2004 14:25:16 -0500|
|Reply-To: ||Glenn Heagerty <gheagerty@EARTHLINK.NET>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Glenn Heagerty <gheagerty@EARTHLINK.NET>|
|Subject: ||Re: Time Problem!|
|Content-Type: ||text/plain; charset=us-ascii; format=flowed|
Replace your code with:
outvar1 = put(time01, time5.);
The variable TIME01 appears to be a SAS time value of 39600. The assigned time5.
format is used to display TIME01 values in procedural or other output by default.
Your assignment takes the number 39600, formats it as 8., then converts to a
character string '39600', then aligns to the left(which has already been done by
Hope this helps,
Ross, Michael D wrote:
> Hi All,
> I'm having a problem with the TIMEO1 variable(below) displaying its value
> in OUTVAR1. TIME01 has a value of 11:00, however, OUTVAR1 has a value of
> Outvar1 $200.;
> time01 has a format of time5.;
> outvar1 = LEFT(PUT(TIME01,8.));
> Thanks for your help!