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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 745 views
  • 0 likes
  • 2 in conversation