Help using Base SAS procedures

Section Headers Proc Report

Accepted Solution Solved
Reply
Super Contributor
Posts: 477
Accepted Solution

Section Headers Proc Report

How can I display header type text within a proc report?  I am trying to display different text per section.  The below block creates a report where the line call is displayed for every category group with the same text.

 

proc report data=FacultyProfileFall;
column categoryGroup colPreOrdering2 formatGroup c2 c3 c4 c5 c6 c7;

define c2 / format=comma9. '2011-12';
define c3 / format=comma9. '2012-13';
define c4 / format=comma9. '2013-14';
define c5 / format=comma9. '2014-15';
define c6 / format=comma9. '2015-16';
define c7 / format=comma9. '2016-17';
define categoryGroup / group order = internal ;
define colPreOrdering2 / group order = internal format= rankFormatValue. ;
define formatGroup / group noprint;

compute before categoryGroup / style=[just=l font_weight=bold];
if categoryGroup = 5 then do;
line 'Insert only once rather than every category group.';
end;
endcomp;
run;


Accepted Solutions
Solution
‎07-05-2017 11:07 AM
Super Contributor
Posts: 477

Re: Section Headers Proc Report

line categoryGroup; 

View solution in original post


All Replies
Solution
‎07-05-2017 11:07 AM
Super Contributor
Posts: 477

Re: Section Headers Proc Report

line categoryGroup; 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 112 views
  • 0 likes
  • 1 in conversation