BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Dear all,

I have a table to print and I have to put a line between two specified rows of my table.
How can I do that (maybe using RTF control words?)?

Many thanks for your help!

Violaine
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Violaine:
You can use a LINE statement within a COMPUTE block, however, the LINE statement can only execute BEFORE or AFTER a group:
[pre]
ods rtf file='c:\temp\showline.rtf';
proc report data=sashelp.class nowd;
column sex name age height;
define sex /group;
define name / order;
define age /mean;
define height/mean;
compute after sex;
line 'End of This Group';
endcomp;
break after sex/ summarize;
run;
ods rtf close;
[/pre]
So it would be hard to insert a break after any two girls, for example, or any two boys.

For more ideas on this problem, you might consider contacting Tech Support.
http://support.sas.com/techsup/contact/index.html

Good luck, cynthia
Duong
Obsidian | Level 7
Hi Both

You can attach the control words (e.g \brdrb\brdrs\brdrw15) to each of the variable value
for this. But this will still give you a gap between the cells (ie your line will not be continous)

Again this can be done via post-poressing your RTF file.


Duong

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
  • 2 replies
  • 773 views
  • 0 likes
  • 3 in conversation