The PROC MEANS report shown in the image displays statistics for a single variable Age with no
decimal places. The correct SAS code to generate such a report is option D, which uses the PROC
MEANS procedure with the maxdec=0 option to control the number of decimal places displayed (in
this case, zero) and specifies Age as the analysis variable using the var statement.
The PROC MEANS procedure computes descriptive statistics for numeric variables. The maxdec=0
option is used here to remove decimal places from the report output, which matches the output
shown where the mean, standard deviation, minimum, and maximum are all integers.
The other options are incorrect for the following reasons:
A uses the class statement, which is not appropriate here because Age is not a classification variable
but an analysis variable.
B uses the group statement, which is not a valid statement in the PROC MEANS procedure.
C uses the by statement, which requires the data to be sorted by the BY variable and does not fit the
output provided since it would produce separate statistics for each value of Age.
Reference:
SAS 9.4 documentation for the PROC MEANS statement: SAS Help Center: PROC MEANS