07-12-2012 06:20 PM
It depends on your data and what you mean by "next to cell values". In the program below, the ROWPCTN and COLPCTN are "next to" the count (N) for each crossing of AGE and SEX.
You should be able to run this program, since it uses SASHELP.CLASS. If you have specific PROC TABULATE questions, it is usually helpful if you show a sample of your data and the code that you have tried. Or, paste an example of what you want your results to look like, with a sample of your data.
ods _all_ close;
options missing=' ';
picture pctf low-high='009.99%';
ods html file='c:\temp\tab_pct.html' style=sasweb;
proc tabulate data=sashelp.class f=pctf.;
class age sex;
table age all,
sex*(n*f=3. rowpctn colpctn) all*(n*f=3. rowpctn colpctn);
ods html close;