BookmarkSubscribeRSS Feed
data_null__
Jade | Level 19

I want to modify the attributes of cell borders as would be done in EXCEL with the menu shown in the attachment.  Are there style attributes that control this?  Is it TAGATTR?  Something else? 

 

Capture.PNG

3 REPLIES 3
Reeza
Super User

Are you working with a style template or predefined style?

PaulOK01
Fluorite | Level 6

Hi data_null_,

 

I used the example near the end of Eric Gebhart's 2008 paper to create my own custom style template and then use the styles in my Proc Report compute blocks.  See http://www2.sas.com/proceedings/forum2008/036-2008.pdf

 

Paul

ballardw
Super User

If it is a procedure like proc print, report or tabulate then style overrides for Borderwidth (bordertopwidth, borderbottomwidth, borderleft width or borderrightwidth to address them individually) and/or bordercolor (bordertopcolor etc) generally worked for me. The fun part is getting width unit as a simple number can get pretty large changes so something like Borderwidth=3px or borderwidth=0.1cm.

 

A brief example with proc print:

proc print data=sashelp.class;
   var name /style={borderwidth=1};
   var age  /style={borderwidth=2};
   var height / style={borderwidth=3};
run;

Each variable witll have a different thickness of line around the values.

 

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
  • 3 replies
  • 4256 views
  • 1 like
  • 4 in conversation