ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MR19
Calcite | Level 5

I'm creating a pdf report with 4 tables and I want to use PAGESIZE to set each table on one page but failed to do that.

I'm not sure where to put the PAGESIZE option and how to determine the number for it.

 

Here are the codes.

ods pdf file='C:\Users\Box\#4\report2.pdf';
proc print data=q6;
id Guest;
by table;
sum nonbeef;
sumby table;
var food;
title 'Summary of food order by table';
run;
ods pdf close;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I think that you may actually want PAPERSIZE.

 

Something like

Options papersize=(15in,24in);

BEFORE the ODS PDF statement would set the size to 15 inches wide and 24 inches tall.

 

Your should be able to reset to the default with

options papersize;

after done with the custom size.

 

Pagesize doesn't quite work because it specifies number lines and is OLD, like lineprinter old and intended more to work with SAS OUTPUT window destinations than ODS where the concept of a fixed line height does not apply as each "line" is determined by style settings for font size plus cell space around text and a few other things.

View solution in original post

1 REPLY 1
ballardw
Super User

I think that you may actually want PAPERSIZE.

 

Something like

Options papersize=(15in,24in);

BEFORE the ODS PDF statement would set the size to 15 inches wide and 24 inches tall.

 

Your should be able to reset to the default with

options papersize;

after done with the custom size.

 

Pagesize doesn't quite work because it specifies number lines and is OLD, like lineprinter old and intended more to work with SAS OUTPUT window destinations than ODS where the concept of a fixed line height does not apply as each "line" is determined by style settings for font size plus cell space around text and a few other things.

sas-innovate-white.png

Our biggest data and AI event of the year.

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.

 

Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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