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

I have several PROC report statements that I want to output to using ODS PDF with approx 2 to 3 per page.  I am using the startpage=no in the first ods file statement and startpage=now where I want to have pagebreaks.  However, when I do this it's only giving me 1 title and footnote per page --those for the first statement.  How do I maintain the individual titles and footnotes for each output on the page? 

1 ACCEPTED SOLUTION

Accepted Solutions
A_Kh
Barite | Level 11

Hi, 

ODS ESCAPECHAR has style options for formatting texts (ODS TEXT) . Look at this paper . 
eg. 

ods escapechar='~';
ods pdf file='test.pdf' startpage=no;
	title 'Sex= Female';
	proc report data=sashelp.class;
	where sex='F';
	run;

	ods text='~S={font_size=12pt just=center font_weight=bold} Sex= Male';
	proc report data=sashelp.class;
	where sex='M';
	run;

	ods pdf startpage=now;
	title 'Sex= Both';
	proc report data=sashelp.class;
	run;
ods pdf close; 

View solution in original post

3 REPLIES 3
RandoDando
Pyrite | Level 9
I see the option for ODS Text = but I cannot find any formatting option for this. Seems to be good for footnotes, but not titles.
A_Kh
Barite | Level 11

Hi, 

ODS ESCAPECHAR has style options for formatting texts (ODS TEXT) . Look at this paper . 
eg. 

ods escapechar='~';
ods pdf file='test.pdf' startpage=no;
	title 'Sex= Female';
	proc report data=sashelp.class;
	where sex='F';
	run;

	ods text='~S={font_size=12pt just=center font_weight=bold} Sex= Male';
	proc report data=sashelp.class;
	where sex='M';
	run;

	ods pdf startpage=now;
	title 'Sex= Both';
	proc report data=sashelp.class;
	run;
ods pdf close; 
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
  • 3 replies
  • 1695 views
  • 1 like
  • 2 in conversation