ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 27

The following SAS program is submitted:
proc means data = sasuser.houses std mean max;
var sqfeet;
run;
Which one of the following is needed to display the standard deviation with only two decimal places?
A. Add the option MAXDEC = 2 to the MEANS procedure statement.
B. Add the statement MAXDEC = 7.2; in the MEANS procedure step.
C. Add the statement FORMAT STD 7.2; in the MEANS procedure step.
D. Add the option FORMAT = 7.2 option to the MEANS procedure statement.
Click Comment link to get answer

12 comments:

  1. Anonymous9:16 AM

    Answer is A

    ReplyDelete
  2. Anonymous10:19 AM

    Other commonly used options available in PROC MEANS include:

    • DATA= Specify data set to use
    • NOPRINT Do not print output
    • MAXDEC=n Use n decimal places to print output

    So the Answer is A

    ReplyDelete
  3. Anonymous5:35 AM

    Answer is A

    ReplyDelete
  4. Praveen7:15 AM

    i dont understand that A is answer because, it will change std, mean and max to two decimal points. it would be better to use the statement C in the PROC MEAN step. which would only change the format of STD.

    ReplyDelete
  5. Anonymous9:02 AM

    Praveen because format statement is not supported / valid in proc means.

    ReplyDelete
  6. Praveen11:52 AM

    Thnx.. i made a mistake..

    ReplyDelete
  7. Anonymous4:03 AM

    Very helpful suggestions that help in the optimizing website.
    thank for sharing the link

    goldenslot
    gclub
    gclub casino

    ReplyDelete