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?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: