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;