It seems it does not recognise "set class; as it does not turn blue...
I removed the first line. It was an error introduced by the web editor on here.
Try it again.
thanks
Do you like to use proc sgplot ?
data class;
set sashelp.class;
if name='Alfred' then weight=200;
if name='Robert' then weight=500;
if name='Alice' then weight=20;
run;
proc sgplot data=class;
vbox weight/category=sex datalabel;
run;
Welcome to SAS, if you have further questions please feel free to ask.
This question appears answered, please mark the appropriate answer correct. BallardW solution was the correct answer.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: