Help using Base SAS procedures

Proc Report column headers

Reply
Contributor
Posts: 71

Proc Report column headers

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

Super User
Posts: 10,035

Proc Report column headers

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

Contributor
Posts: 71

Proc Report column headers

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

Ask a Question
Discussion stats
  • 2 replies
  • 129 views
  • 3 likes
  • 2 in conversation