Help using Base SAS procedures

problems with conversion time hhmm5.

Accepted Solution Solved
Reply
Super Contributor
Posts: 301
Accepted Solution

problems with conversion time hhmm5.

Hi everyone, I've got a proble with the conversion in hours and minutes for the data 176.5...it is not converted properly,

any help? Thnaks in advance. V.

data have;

input hours 8.;

datalines;

0

176.5

1.25

2.5

3

;;;

run;

data want;

set have;

format time HHMM5.;

time = hours*3600;

run;

proc print; run;


Accepted Solutions
Solution
‎07-26-2012 07:45 AM
Super Contributor
Posts: 282

Re: problems with conversion time hhmm5.

Hi,

Try increasing your format width to HHMM6.

Regards,

Amir.

View solution in original post


All Replies
Solution
‎07-26-2012 07:45 AM
Super Contributor
Posts: 282

Re: problems with conversion time hhmm5.

Hi,

Try increasing your format width to HHMM6.

Regards,

Amir.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 343 views
  • 0 likes
  • 2 in conversation