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

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