That depends on how you write your table statement. It's hard to work without sample data, but does this look close:
data sample;
set sashelp.class;
array q(5) q1-q5;
do i=1 to 5;
q(i)=rand('bernoulli', 0.4);
end;
output;
run;
proc freq data=sample;
table (q1 q2 q3 q4 q5)*sex*age;
run;
... View more