BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cak221
Fluorite | Level 6

Hello all - 

 

I'm hoping for a little guidance in troubleshooting this behavior with PROC REPORT. I am creating a table that includes pngs via a format in ODS PDF. My SAS version is 7.13 HF4. Somewhere along the way proc report is making some rows taller than they need to be. Yes, there is text wrapping so it needs to dynamically expand the height of the rows, but it's causing extra, uneeded white space in a lot of rows. See this first screenshot below. Hopefully you can understand and see the placement of the text despite my blurring out the data. The columns that have the tallest text/info are the first two columns usually, and there's still white space above the text in those cells.

 

proc_report_1_p.png

 

I tested removing (by adding 'noprint') individually the first and second column which contain wrapped text and it then does wrap tightly as desired. I also removed the sparkline image column and the last column with the note about the sparkline trend and it then wraps tightly as desired as well. Below are screenshots of some of these tests where it looks good.

 

proc_report_2_p.png

proc_report_3_p.png

 

proc_report_4_p.png

 

So I'm not sure where the source of the issue is and how to fix it since it only seems to have trouble when I include everything. I also tried making the sparkline column cellwidth wider, but it didn't help. I also tried removing the middle columns and extending the width of the first two columns and reducing the margins, but there's still extra space.

 

Any ideas? Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

A bare minimum to get specific suggestions would be to include the proc report code.

 

It is a bit hard to read the images but I would suggest making all of the body cells have the same vertical justification. It appears that the image is top justified and the second column is bottom justified.

View solution in original post

2 REPLIES 2
ballardw
Super User

A bare minimum to get specific suggestions would be to include the proc report code.

 

It is a bit hard to read the images but I would suggest making all of the body cells have the same vertical justification. It appears that the image is top justified and the second column is bottom justified.

cak221
Fluorite | Level 6

Thank you for the suggestions, I should have included the code of course. And I had planned on fixing the vertical adjustment eventually, but to me, it didn't seem that it would be related to the issue ... but I was wrong, as that actually appears to have been the fix! Wow. Thank you for the quick reply and my apologies for not trying that first.

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
  • 1652 views
  • 1 like
  • 2 in conversation