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

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.

 

 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 790 views
  • 0 likes
  • 3 in conversation