Without any data or seeing the code you've tried, it's hard to make much of a suggestion, but I would be tempted to use PROC REPORT and something like the program below.
cynthia
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!