The FORMAT statement assigns formats to Gender and Occupation. The TITLE statements specify the titles.
   format gender gendfmt. occupation occupfmt.;
   title 'Gender Distribution';
   title2 'within Job Classes';
run;