BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
diwashsapkota
Calcite | Level 5

I want to display the title2 and title3 on the same line, with title2 left aligned and title3 right-aligned inside the header section of my ods rtf file. I have the following code above my PROC REPORT Statement:

proc template;
%** Courier 9pt **;
define style styles.ods_9pt;
parent=styles.rtf;
replace fonts/ 'TitleFont2'=("Courier New", 9pt) 'TitleFont'=("Courier New", 
9pt) 'FootnoteFont'=("Courier New", 9pt) 'StrongFont'=("Courier New", 9pt) 
'EmphasisFont'=("Courier New", 9pt) 'FixedEmphasisFont'=("Courier New", 9pt) 
'FixedStrongFont'=("Courier New", 9pt) 'FixedHeadingFont'=("Courier New", 
9pt) 'BatchFixedFont'=("Courier New", 9pt) 'FixedFont'=("Courier New", 9pt) 
'headingEmphasisFont'=("Courier New", 9pt) 'headingFont'=("Courier New", 
9pt) 'docFont'=("Courier New", 9pt);
replace document from container / asis=on protectspecialchars=off;
replace SystemFooter from TitlesAndFooters / asis=on protectspecialchars=on 
font=Fonts('FootnoteFont');
replace systemtitle from titlesandfooters/ asis=on protectspecialchars=off;
replace body from document / asis=on;
replace color_list "Colors used in the default style" / 'link'=blue 
'bgH'=white 'fg'=black 'bg'=white;
replace Table from output / Background=_UNDEF_ cellpadding=0pt Rules=groups 
Frame=hsides;
style Header from Header / Background=_undef_;
style Rowheader from Rowheader / Background=_undef_;
replace pageno from titlesandfooters/ Foreground=white;
end;
run;
 
ods rtf file='/home/u63366981/01_adam/results/teaetg.rtf' style=styles.ods_9pt;
ods rtf startpage=now;
ods escapechar='#';
title1 color="black" justify=left "Protocol:CDISCPILOT01";
title2 color="black" justify=left "Population:Safety";
title3 color="black" justify=right 'Page #{thispage} of #{lastpage}';
title4 color="black" justify=center bold "Template 13";
title5 color="black" justify=center 
"Incident of Treatment Emergent Adverse Events by Treatment Group";
options center date number;
1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Try this (UNTESTED)

 

title2 color="black" justify=left "Population:Safety" justify=right 'Page #{thispage} of #{lastpage}';
--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Try this (UNTESTED)

 

title2 color="black" justify=left "Population:Safety" justify=right 'Page #{thispage} of #{lastpage}';
--
Paige Miller

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 425 views
  • 1 like
  • 2 in conversation