BookmarkSubscribeRSS Feed
Cristina_inet
Fluorite | Level 6

Good morning,
we are printing a pdf output with a table.
This table has the first cell empty.
We want to remove that empty cell.
How could we do it?

We generate it with proc report.

 

Thank you very much for everything.
Best wishes

2 REPLIES 2
JosvanderVelden
SAS Super FREQ
Please do not attach zip files to posts. Even simple .txt files can pose a security risk and therefore most attached files will NOT be opened by experienced security aware participants in this forum! You have the insert sas code option when you compose your post to insert code or log content. If your code/log seems too BIG for the insert sas code option then create an example that can be placed in the post using the insert code option. If you want to add an image/screenshot you can use the insert photo option. Thank you.
Cynthia_sas
SAS Super FREQ

Hi:

  As noted, it is unlikely that many people will open a zip file. Without seeing your code, it's hard to guess what you mean. There are 2 scenarios with PROC REPORT that come quickly  to mind, however, using Spanning Headers in a COLUMN statement or using ACROSS items. In either case, you see an empty cell sometimes, as shown below:

Cynthia_sas_0-1689876899807.png

I don't know if this is what you're describing, but it is not possible in PROC REPORT syntax to "merge" the cells vertically in order to get rid of the empty cell above either Name (first example) or Region (second example).

You could fiddle around and change the border colors to try and make it appear as though there was just one cell -- it would still be 2 separate cells though. And depending on your destination, that may or may not work to fiddle with the border colors.

  You can do both row spanning and column spanning with the Report Writing Interface as shown in this paper https://support.sas.com/resources/papers/proceedings16/SAS5762-2016.pdf on page 19, you can see how vertical spanning is produced for the Overall CSS column. You'd have to use a similar technique if this is the type of thing you want to do.

  Cynthia

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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