Equivalent proc tabulate code would be: proc tabulate data=regdata2; class field exam_data; table field,exam_data*n=' '*f=f6.0; run; if your counts are more than 999999 make the f6.0 larger. This code will not display counts where either of Field or Exam_data are missing. If you want to see the missing, if any, add "/ missing" to the class statement after the variable names.
... View more