BookmarkSubscribeRSS Feed
deleted_user
Not applicable
hello all, i would like to have a table with an output just like the one i get with this:

ods html file='temp.html';

proc report data=sashelp.class nowd
style(report)={cellspacing=0 rules=groups};
col sex name height;
define sex / order;;
define height / sum;

compute height;
call define(_col_,"style",
"style={htmlstyle='border-top:1px solid white;
border-left:1px solid white'}");
if height eq '62.8' then
call define(_col_,"style",
"style={htmlstyle='border-left:white'}");
endcomp;

compute name;
call define(_col_,"style",
"style={htmlstyle='border-top:1px solid white;
border-left:1px solid white'}");
if name eq 'Carol' then
call define(_col_,"style",
"style={htmlstyle='border-left:#d3d3d3;border-top:1px solid white'}");
if name eq 'Jane' then
call define (_col_,"style",
"style={htmlstyle='border-top:#d3d3d3;border-left:1px solid white'}");
endcomp;

compute sex;
call define(_col_,"style",
"style={htmlstyle='border-top:1px
solid white'}");
endcomp;
run;

ods html close;

what i want is to make an 'L' shape in some headers.
is there any way to work this out?
i have tried creating templates, but i only can get all/none vertical or horizontal bars, not one specifically.

regards
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
In PDF, the HTMLSTYLE attribute does not work. So, you would either have to wait for these text-decoration attributes in SAS 9.2:
http://support.sas.com/rnd/base/topics/new92/92pdf.html

or hope that these RTF border attributes will also work for PDF and printer family destinations in 9.2:
http://support.sas.com/rnd/base/topics/new92/92rtf.html#bordervor

In the meantime, since you can achieve the look you want with HTML, you might investigate whether a 3rd party HTML to PDF converter would work to convert your HTML output -- which can use HTMLSTYLE -- to PDF and whether the borders would convert correctly to PDF.

cynthia

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
  • 1 reply
  • 655 views
  • 0 likes
  • 2 in conversation