BookmarkSubscribeRSS Feed
Wizard
Calcite | Level 5

I am trying to replace a PROC TABULATE with PROC REPORT and  calculate percentages.   I found  PROC REPORT is missing all the same special percentages as tabulate.

The following is from tabulate documentation:

"Special percentages in PROC TABULATE include COLPCTN, COLPCTSUM, ROWPCTN, ROWPCTSUM, PAGEPCTN, and PAGEPCTSUM"

So why are these Special percentages NOT in PROC REPORT ???????     I should not have to code compute blocks to get these percentages.

These special percentages would make PROC REPORT easier to use.

Thanks

1 REPLY 1
ballardw
Super User

The two procedures are intended for different display types. Proc Tabulate allows multiple nestings in both row and column so it makes sense to have the 'special' percentages, though getting them to work as desired sometimes is an issue.

If you need them use Tabulate. But if you want to mix these percentage and column calculations you will have to do some work.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 999 views
  • 0 likes
  • 2 in conversation