ods exclude all; proc freq data=temp_ds_01; tables &grp*&ctg; ods output crosstabfreqs=temp_ds_02; run; ods exclude none;