Set Axis macro
%let path=c:\users\dlm1\dropbox\sas\sasdata; libname b "&path\st192"; proc contents data=b.bodyfat; run; proc sgplot data=b.bodyfat; scatter x=weight y=pctbodyfat1;
proc sgplot data=b.bodyfat; scatter x=weight y=pctbodyfat1; xaxis labelattrs=(Family=Arial Size=8 Weight=Bold) valueattrs=(Family=Arial Size=8 Weight=Bold); yaxis labelattrs=(Family=Arial Size=8 Weight=Bold) run;
Set_axes macro %macro set_axes; xaxis labelattrs=(Family=Arial Size=8 Weight=Bold) valueattrs=(Family=Arial Size=8 Weight=Bold); yaxis labelattrs=(Family=Arial Size=8 Weight=Bold) %mend;
proc sgplot data=b.bodyfat; scatter x=weight y=pctbodyfat1; %set_axes run;