BookmarkSubscribeRSS Feed
jerry898969
Pyrite | Level 9
I have two small data tables that I want to put side by side as one page within a pdf file and I can't find any code on how to do that?

This is the code i'm currently using
[pre]
ods printer pdf file= 'c:\test.pdf';

title 'test 1';
proc print data=test1 noobs width=minimum label;
run ;

title 'test 2';
proc print data=test2 noobs width=minimum label;
run ;

ods printer close;
run;
[/pre]

This puts them on seperate pages not side by side on the same page.

Any help would be appreciated.



Thank You
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
What version of SAS are you using??? SAS 8.2?? SAS 9.1?? SAS 9.2??? The COLUMNS= option for ODS PDF should give you what you want. I'm not sure it was available in SAS 8.2 (I wonder about your version because ODS PRINTER PDF is an older way of invoking ODS PDF).

cynthia
[pre]
options nodate nonumber;
ods pdf file= 'c:\temp\testCOL.pdf' columns=2;

title 'test 1';
proc print data=sashelp.class noobs label;
where age ge 15;
var name sex age;
run ;

title 'test 2';
proc print data=sashelp.class(obs=6) noobs label;
var name age height;
run ;

ods pdf close;
[/pre]
jerry898969
Pyrite | Level 9
Cynthia,
Thank you so much for your response. That helped a lot.

I'm using SAS 9.2.

Thank You

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 3051 views
  • 0 likes
  • 2 in conversation