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?
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.