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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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