BookmarkSubscribeRSS Feed
ASASProgrammer
Calcite | Level 5


Using ODS pdf plus proc report to generate pdf file.

Since I have many columns, and I need keep all of them in one line, but it always breaks in somewhere, and move some columns to next line.

How do I prevent this?

e.g.

I need this:

col1 col2 col3 col4 ... col15

but it is always like this:

col1 col2 col3 col4 ... col10

col11 col12..  col15

3 REPLIES 3
Cynthia_sas
Diamond | Level 26

Hi:

  One of my first posts in the forum was about how to deal with "very wide" reports and how to use ODS STYLE= overrides to make them fit on a "page". I believe the code will still work that I posted. I'd suggest you search for that old post. I think if you use the search terms "very wide" you will find it.

cynthia

ASASProgrammer
Calcite | Level 5

Thanks Cynthia.

It helps.

What I am thinking is that if there is an option to shrink or enlarge in proportion to fit in the page, that would be nice.

Thanks!

Cynthia_sas
Diamond | Level 26

Hi:

There is no such option to shrink or enlarge what is going to be on the page. You can impact the PDF viewer after the file is created using SAS system options, but you can't shrink or fit while the output is being created. That is why you have to write the report to fit within the margins using ODS STYLE= overrides.

cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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