BookmarkSubscribeRSS Feed
deleted_user
Not applicable
how to generate the line below across variable as below in ods pdf.
ex;
sex
________________________
male female other
5 REPLIES 5
Andre
Obsidian | Level 7
Which procedure please?
Show your code!
deleted_user
Not applicable
I need it using Proc Report
Tim_SAS
Barite | Level 11
Sivas,

When I look at an across variable in PDF, what I see is that the variable is in its own cell surrounded by borders on all 4 sides. What do you want that's different from this? Do you want the variable name underlined?
[pre]
+---------------------------------------------+
| Sex |
+---------------------------------------------+
| M | F | Other |
+---------------------------------------------+
[/pre]
I'm using SAS 9.1.3 SP4 with the default style.
deleted_user
Not applicable
i want the across variable should be underlined in the ods style=journal
Cynthia_sas
Diamond | Level 26
Hi:
Here's some sample code for RTF and HTML. Right now, these are the only destinations where you can underline. I don't think you'll be able to underline in PDF until SAS 9.2.

cynthia
[pre]
ods listing close;
ods rtf file='ul.rtf' style=journal;
title font='Arial' h=14pt 'Using PROC REPORT and RTF control string';

proc report data=sashelp.class nowd
style(header)={protectspecialchars=off};
column ('\ul Span Header' name age height);
run;
ods rtf close;

ods html file='ul.html' style=sasweb;
ods escapechar='#';
proc report data=sashelp.class nowd ;
title font='Arial' h=14pt 'PROC REPORT and CSS style property';
column ('#S={htmlstyle="text-decoration: underline;"}Span Header'
name age height);
run;

ods html close;
title;
[/pre]

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 5 replies
  • 1473 views
  • 0 likes
  • 4 in conversation