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
Diamond | Level 26

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
Diamond | Level 26

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
Diamond | Level 26

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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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