ods tagsets.excelxp file='c:\sas\programs\excelxp\ex6.xls';

ods noproctitle;

ods tagsets.excelxp options(sheet_label=' ' sheet_interval='bygroup');

proc sort data=sashelp.class out=classbysex;
   by sex;
run;

proc print data=classbysex;
   by sex;
run;

ods tagsets.excelxp close;
