Limiting Decimal Places

By default, PROC MEANS output automatically uses the BESTw. format to display numeric values in the report.
The BESTw. format is the default format that SAS uses for writing numeric values. When there is no format specification, SAS chooses the format that provides the most information about the value according to the available field width. At times, this can result in unnecessary decimal places, making your output hard to read.
proc means data=clinic.diabetes min max; 
run;
Variables Fromatted with BESTw. Format
Variables Fromatted with BESTw. Format
To limit decimal places, use the MAXDEC= option in the PROC MEANS statement, and set it equal to the ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.