If you have multiple variables you would need one table statement per variable. Use other options that will create data sets that have different structures: proc freq data=sashelp. class; ods output onewayfreqs= work.