BookmarkSubscribeRSS Feed
Takamini
Calcite | Level 5

How do I prevent two column overlap?
This caused the detail are not able to read.

As the below picture, the "D" from first column overlapping the word from second column,

未命名.png

This is the program how I report this:


PROC REPORT DATA=data NOWD
COLWIDTH=8 SPACING=2
CENTER
HEADSKIP
SPLIT= '|'
LS=256
contents="Report";
COLUMNS A B;
DEFINE A /left style=[cellwidth=20mm] 'A';
DEFINE B /left style=[cellwidth=20mm] 'B';
RUN;

4 REPLIES 4
RahulG
Barite | Level 11

try to add just = center and increase cell width

DEFINE A /left style={just = center cellwidth=40mm} 'A';

Takamini
Calcite | Level 5

Thank you, but this code only align the name of column to left and the contents still over lap.

In fact, I set up 140mm for my real data.

The code was just example.

Reeza
Super User

@Takamini wrote:

Thank you, but this code only align the name of column to left and the contents still over lap.

In fact, I set up 140mm for my real data.

The code was just example.


Ok, can you provide data and code we can use to replicate the issue then?

You should be able to increase the width and have the contents not overlap or are you looking for different functionality?

Ksharp
Super User
Try style cellpadding=


DEFINE A /left style=[cellwidth=20mm  cellpadding=100px  ] 'A';

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
  • 4 replies
  • 793 views
  • 0 likes
  • 4 in conversation