Dear community,
I have used proc tabulate to generate a three-dimensional report. Is there a way to give each table a separate number? I tried writing to ods document but proc document list lists all 3 component tables as one table. Thank you for suggestions in advance.
Hi @Cynthia_sas ,
thank you for responding! Please see the code in question with variable names replaced with placeholders below:
proc tabulate data=foo order=formatted;
var var1 var2 var3 var4;
class var5 var6;
table var1 var2 var3, var5, var6 * (sum colpctsum<var4>) /style=[just=left];
format var5 $var5fmt. var6 $var6fmt.;
quit;
While typing it here I realised that I could probably use 3 separate table statements with var1, var2 and var3 only each and get 3 objects at the cost of code triplication. Is there a cleaner solution?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.