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
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
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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.