BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Sean_OConnor
Obsidian | Level 7

Folks,

 

I'm using a simple proc summary and a cross-tabulation of three variables which should give a combination of 216 rows of output. 

 

For some reason when I run this I'm not getting it however. Only getting 126 rows. 

 

The strange thing is that for some rows the count is . this indicating the cross tab does not exist in the dataset, but for others the cross tab isn't showing at all.

 

Can someone explain to me please why this occurs?

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
ballardw
Super User

If you want combinations of Class variables that do not actually exist in your data you likely are looking at wanting the COMPLETETYPES option on the proc.

 

I also suspect that you did not include the NWAY option so you get different _type_ levels that are summarizing only one variable (or 2 of 3) which would have missing values for the other class variable.

 

Show the code that you ran. Copy it from your editor and open a text box on the forum with the </> icon and paste the code.

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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