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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 939 views
  • 0 likes
  • 3 in conversation