Hi everybody,
I'm using the PROC MEANS in order to get the MIN, MAX, RANGE and MEAN of a group of values. The MIN, MAX and MEAN returns well but for RANGE was returned the SUM of MIN and MAX values.
This is my code:
proc means data=TBL min max mean range maxdec=0 ;
class ano local categoria;
var valor;
run;
The result I've got:

The SAS Guide information:

Tks to help!
Rogerio Alves