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

Hi, I want to reduce the below row height. I used Absolute Row height and Absolute column width but the width is increasing but it is not working the way that I want.

 

Customer
Rating
of
Products
Customer
Rating
of
Online
Products
Customer
Feeback
Response

 

I want this to be like,

Customer Rating
of Products
Customer Rating
of Online Products
Customer Feeback
Response

 

Plese let me know what should I add. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  Here's what you'd do in PROC REPORT:

column_width_report.png

Cynthia

View solution in original post

6 REPLIES 6
Reeza
Super User
Are you using PROC REPORT? Have you tried specifying a SPLITCHAR? Or explicitly setting the widths.
ballardw
Super User

@DLROW wrote:

Hi, I want to reduce the below row height. I used Absolute Row height and Absolute column width but the width is increasing but it is not working the way that I want.

 

Customer
Rating
of
Products
Customer
Rating
of
Online
Products
Customer
Feeback
Response

 

I want this to be like,

Customer Rating
of Products
Customer Rating
of Online Products
Customer Feeback
Response

 

Plese let me know what should I add. Thanks.


Hard to know what to add without knowing what you currently have. Please post the code used to generate your output in a code box opened with the forum's {I} icon.

Cynthia_sas
SAS Super FREQ

Hi:

  Here's what you'd do in PROC REPORT:

column_width_report.png

Cynthia

DLROW
Quartz | Level 8

Thanks Cynthia, it worked. 

Below is the code that I used before, 

split='*' 

define customer rating of products / 'customer rating * of products' width=20

 

 

Using Style(Column) ={width-1.5in}  worked. Thanks!

 

Now, the columns next to it are at the bottom of the cell, I wanted it to be at the top. Attached the screen shot for your referrence..

 

 

 

 

 

Cynthia_sas
SAS Super FREQ

Hi:
You'll need to add a STYLE override for the HEADER so that vertical alignment is TOP. So like this:
PROC REPORT data= ... split='/'
      style(header)={vjust=t}
      style(column)={ ... .. };
...more code ...
run;

Cynthia

DLROW
Quartz | Level 8
Thank you, Cynthia. It works.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 6 replies
  • 7792 views
  • 4 likes
  • 4 in conversation