BookmarkSubscribeRSS Feed
Bulleride
Obsidian | Level 7

MAXDEC=2 

this will give numbers upto 2 decimal places or 1?

1 REPLY 1
mohamed_zaki
Barite | Level 11

First, MAXDEC is not System option. System options are instructions that affect your SAS session. You can check them here: SAS System Options

 

MAXDEC is one of PROC MEANS statment options. You can find detials about it in PROC MEANS documentaions here

 

And let suppose you went through the doc and you did not understand, Why do not you run this option in simple SAS code and test it by yourself.

For example run the following steps and change the value of maxdec and know by yourself:

data cake;
   input LastName $ 1-12 Age 13-14 PresentScore 16-17 
         TasteScore 19-20 Flavor $ 23-32 Layers 34 ;
   datalines;
Orlando     27 93 80  Vanilla    1
Ramey       32 84 72  Rum        2
Goldston    46 68 75  Vanilla    1
;


proc means data=cake n mean max min range std fw=8 maxdec=2;
   var PresentScore TasteScore;
run;

You are welcome to ask anytime, but do more effort to find the answer by yourself or at least in writing your question.

 

All the best!!!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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