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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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