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
SAS Super FREQ
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]

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