BookmarkSubscribeRSS Feed
RAVI2000
Lapis Lazuli | Level 10

How can we get different column headers for each page in a same report for different sub-groups?

 

2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
What code have you tried? Within one table, when you have a multi-page report, you typically have the same column headers for every variable on every page. You can get around that with Macro processing, but then you'd need a way to determine how many rows per page you were going to have.
Within one PROC REPORT step, you can't change the column headers without either modifying the data somehow or using SAS Macro processing. You have not posted code or data or your desired output. So it's hard to provide more constructive examples or advice.
Cynthia
Tom
Super User Tom
Super User

If the header is actually the value of an ACROSS variable then then the header can change.

Post more specifics to see if that helps you or not.

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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