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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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