BookmarkSubscribeRSS Feed
tburus
Obsidian | Level 7

I am trying to force a page break in an RTF document using `startpage=now` but am getting weird results. The page break happens, but the title of the page doesn't change and the footer is in a different place. If I don't force the page break then the titles and footers are correct, but the output doesn't display as I'd expect. Please advise.

My code:

/******** RTF ********/
ods rtf file="&path.\Rules Committee Report\rules_committee_football.rtf";
goptions reset=all; 

/* cover page */
title j=r color=white bcolor=&Dblue height=10pt font='Arial' "^\line NCAA Football Rules Committee Report ^\tab ^\line";
ods rtf text="^S={outputwidth=100% just=c fontfamily='Arial' font_size=14pt foreground=&Dblue}^\line NCAA Football Rules Committee Meeting ^\line Injury Surveillance Report ^\line"; 
footnote j=c color=white bcolor=&Dblue height=8pt font='Arial' 
	"^\line Datalys Center | 401 West Michigan Street, Suite 500 | Indianapolis, Indiana 46202 | 855-832-4222 ^\line";

proc report data=imagelist noheader nofs
		style={frame=void rules=none
		protectspecialchars=off};
	define list /style={cellwidth=3.5in} center;
	define words / style={cellwidth=3.5in fontfamily='Arial' font_size=11pt} left;
run;

ods rtf startpage=now;

title j=c "^S={preimage='C:/Users/Todd/Dropbox/Datalys/Rules Committee Report/isp_logo_small.png'}";
proc odstext;
	...;
run;

/* close rtf */
ods rtf close;
ods html;
/**** end rtf report ****/

Result:

ex2.png

Result without `ods rtf startpage=now`:

ex1.png

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

Moved to the ODS Reports forum, hoping you'll get an answer there.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 896 views
  • 2 likes
  • 2 in conversation