Help using Base SAS procedures

Proc Report - Extra WhiteSpace and Row Height with Wrapped Text

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

Proc Report - Extra WhiteSpace and Row Height with Wrapped Text

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!


Accepted Solutions
Solution
‎05-01-2017 01:39 PM
Super User
Posts: 10,500

Re: Proc Report - Extra WhiteSpace and Row Height with Wrapped Text

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


All Replies
Solution
‎05-01-2017 01:39 PM
Super User
Posts: 10,500

Re: Proc Report - Extra WhiteSpace and Row Height with Wrapped Text

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.

New Contributor
Posts: 4

Re: Proc Report - Extra WhiteSpace and Row Height with Wrapped Text

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.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 138 views
  • 1 like
  • 2 in conversation