A grouping variable is required in the PLOT statement in PROC BOXPLOT. So to get a single box-and-whisker plot for a variable, you need to create a constant grouping variable. Another approach is to use PROC SGPLOT, where a grouping variable is not required.
Here are some examples. These statements create a data set that contains random values for variable X for which the plots are produced:
data a;
do i=1 to 25;
x=rannor(4308);
output;
end;
drop i;
run;
These statements add a constant grouping variable for use in PROC BOXPLOT:
data a;
set a;
group=1;
run;


This PROC SGPLOT step produces the plot without the need for an additional grouping variable:
proc sgplot data=a;
vbox x;
run;
