BookmarkSubscribeRSS Feed
Cynthia_sas
SAS Super FREQ

Hi:

  Using the default style, I could NOT get 33 obs on a landscape page, so I changed just a few things -- I made the margins even smaller, but at best, I had to change the first page to only hold 26 obs not the 33 you had,

landscape.png

And here's the output, as I expected, with the title only on the FIRST page:

land_pdf.png

 

The ONLY way I discovered to get 33 obs on the first page was to override the cellpadding, as shown below:

change_cellpadding.png

  However, this all works for me with ODS PDF and SASHELP.CARS -- I can get the title just on the first page in landscape or portrait.

 

  If you run similar code and you get the title on ALL pages in the landscape PDF file, even after adjusting the number of obs, that is a problem that needs to be reported to Tech Support.

 

Cynthia

SASdevAnneMarie
Barite | Level 11

Thank you Cynthia!

 

It works! 

SASdevAnneMarie
Barite | Level 11
Hello,
My 2 proc report for 9 columns works well, but sometimes, the columns are truncated (I have 6 columns, and another 3 columns in the end). When I re-run the programme it is not truncated. Maybe you know some option to fix it? Thank you!
hari1109
Fluorite | Level 6
Thank you guys for the suggestions. i will look into those and let you know if it is working.
ballardw
Super User
Possibly using ODS PDF Text="" before your procedure call. Add appearance options as needed/available.<BR /> <BR /> I don't use PDF much but have done this MANY times for RTF output when I have similar needs.
hari1109
Fluorite | Level 6
I used the code
Cynthia has suggested and it is working fine. Thank you very much.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 21 replies
  • 5594 views
  • 1 like
  • 8 in conversation