DATA Step, Macro, Functions and more

System Options

Reply
Contributor
Posts: 31

System Options

MAXDEC=2 

this will give numbers upto 2 decimal places or 1?

Super Contributor
Posts: 490

Re: System Options

Posted in reply to Bulleride

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!!!

Ask a Question
Discussion stats
  • 1 reply
  • 188 views
  • 0 likes
  • 2 in conversation