BookmarkSubscribeRSS Feed
PTD_SAS
Obsidian | Level 7

With Proc Report, is there a way to repeat the column headers but not the titles when the value of a group variable changes? i.e. to group the report by a group variable and repeat the column headers only.

Fethon

2 REPLIES 2
Ksharp
Super User

What output do you like?

It would be better if you could post some desired output.

proc report data=sashelp.class nowd noheader;
column sex name;
 define sex /group;
 compute before sex;
  line ' ';
  line @45 'Sex' @49 'Name';
 endcomp;
run;

Ksharp

PTD_SAS
Obsidian | Level 7

Ksharp,

Thanks for that, it gave me clues on how to do it. If there is no automatic way of displaying headers by group then I can format the line statement in compute section and achieve the same result.

Fethon

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 852 views
  • 3 likes
  • 2 in conversation