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?
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;
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;
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.