BookmarkSubscribeRSS Feed
mandonium
Fluorite | Level 6

Hello,

I'm trying to produce reports in proc tabulate, but I need the output to have all the cells filled in.

 

This is what I get:

saspic3.JPG


And this is what I want:

saspic4.JPG

Here is my code:

 

proc tabulate data=ds01;
class var1 var2 var3 var4;
table var1 * var2 * var3, var4;
run;

Thank you!

 

2 REPLIES 2
Reeza
Super User

I don't think there's a way to do that in PROC TABULATE, but there should be in PROC REPORT. Or you can pre-summarize the data using PROC MEANS and display it using PROC REPORT or TABULATE. 

 

 


@mandonium wrote:

Hello,

I'm trying to produce reports in proc tabulate, but I need the output to have all the cells filled in.

 

This is what I get:

saspic3.JPG


And this is what I want:

saspic4.JPG

Here is my code:

 

proc tabulate data=ds01;
class var1 var2 var3 var4;
table var1 * var2 * var3, var4;
run;

Thank you!

 


 

Ksharp
Super User

I don't know if there is such an option.

Maybe you should check documentation.

 

proc tabulate data=ds01;
class var1 var2 var3 var4;
table var1 * var2 * var3, var4/nocellmerge;
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 670 views
  • 0 likes
  • 3 in conversation