The SAS Output Delivery System and reporting techniques

Several datasets into one rtf/pdf document

Accepted Solution Solved
Reply
Regular Contributor
Posts: 214
Accepted Solution

Several datasets into one rtf/pdf document

[ Edited ]

Hi all,

 

I have several datasets but would like to print it in one rtf/pdf document. How can it be worked in practice? Particular dataset should be particular page in the document.

 

I am not allowed to unite the datasets in one. What are the options of proc report? Or how can it be implemented in a macros?

 

Than you!


Accepted Solutions
Solution
‎03-27-2018 09:32 AM
Valued Guide
Posts: 631

Re: Several datasets into one rtf/pdf document

Posted in reply to DmytroYermak

Untested code, should create one pdf with the data of both datasets. Each proc starts printing on a new page.

 

ods pdf file="....";

proc print data=sashelp.class;
run;

proc print data=sashelp.cars;
run;

ods pdf close;

View solution in original post


All Replies
Solution
‎03-27-2018 09:32 AM
Valued Guide
Posts: 631

Re: Several datasets into one rtf/pdf document

Posted in reply to DmytroYermak

Untested code, should create one pdf with the data of both datasets. Each proc starts printing on a new page.

 

ods pdf file="....";

proc print data=sashelp.class;
run;

proc print data=sashelp.cars;
run;

ods pdf close;
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 141 views
  • 0 likes
  • 2 in conversation