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
SAS Super FREQ

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
SAS Super FREQ

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

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