BookmarkSubscribeRSS Feed
HitmonTran
Pyrite | Level 9

Hi,

 

I am outputting a .RTF using proc report using "By" statement.  The  "by group" on the header only appear on the first page and is center-aligned.  How do I left-align and change the wording on every page?  Thank you.

 

code:

title4 &title4; 
title5 &title5;
title6 'Safety Population';
proc report data = final1 nowd headline headskip missing split='@' style(header column)=[protectspecialchars=off]; by dose; columns ordx1 aebodsys total1 aedecod desc ; define ordx1 / descending order order=internal noprint; define aebodsys / order order=internal noprint; define total1 / descending order order=internal noprint; define aedecod / order order=internal noprint; run;

 

current output:

HitmonTran_0-1610507058005.png

 

want (in hightlight):

HitmonTran_1-1610507114673.png

 

2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
That is a good option; however there will be a challenge with the need to have the BY value centered on the first page, but left justified on all the other pages. With 1 TITLE statement, there is 1 justification -- either centered or left on all pages in the RTF file. So while I agree that using the #byval in the title is what they need to do, the justification expectation will need to change to what is possible.

Cynthia

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!

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.

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
  • 565 views
  • 2 likes
  • 3 in conversation