%let gpath=C:\;
%let dpi=200;
ods html close;
ods listing style=HTMLBlue gpath="&gpath" image_dpi=&dpi;
/*========SAS 9.40M6=======*/
proc format;
value $type
'Sedan'='Sedan'
other= 'Other';
run;
/*--PIE--*/
ods graphics / reset width=4in height=2.5in imagename='Ch_2_17_Pie';
title 'Vehicle Distribution';
proc sgpie data=sashelp.cars;
format type $type.;
styleattrs datacolors=(gold maroon);
pie type / startangle=270;
run;
/*--DONUT--*/
ods graphics / reset width=4in height=2.5in imagename='Ch_2_19_Donut';
title 'Vehicle Distribution';
proc sgpie data=sashelp.cars;
format type $type.;
styleattrs datacolors=(gold olive);
donut type / holevalue holelabel='Count' ringsize=0.2;
run;