Hi all,
How to display two proc reports on a different page?
I am getting it on same.
Thanks.
@Suvathi wrote:
Hi all,
How to display two proc reports on a different page?
I am getting it on same.
Thanks.
What is the actual code of your ODS PDF statement? Are you using STARTPAGE=NO or NEVER? That would be one reason why your output appears on the same page.
The default behavior is to place each procedures output on a new page. Or you can place an ODS PDF statement between procedures that uses STARTPAGE=NOW option. If you use this option you should not place a file name in the statement, just the option.
Hi:
What code are you using? What do your ODS PDF statements look like? Your output doesn't convey anything meaningful about your code or how you are invoking ODS PDF, regarding options or settings. Please post the code you've tried and some data to use with your code. If you cannot post data because your data is sensitive, then please replicate your issue using SASHELP datasets like SASHELP.CLASS, SASHELP.CLASSFIT or SASHELP.SHOES. If this is a persistent problem, with ODS PDF, then you should be able to replicate the issue with any data.
However, as an example, when I do this, I get 2 pages of output in ODS PDF:
ods pdf file='c:\temp\get_two_pages.pdf' ;
proc report data=sashelp.class;
title '1) PROC REPORT on SASHELP.CLASS';
run;
proc report data=sashelp.classfit;
title '2) PROC REPORT on SASHELP.CLASSFIT';
run;
ods pdf close;
Cynthia
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!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.