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
Lapis Lazuli | Level 10

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
Lapis Lazuli | Level 10

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; 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 263 views
  • 1 like
  • 2 in conversation