The SAS Output Delivery System and reporting techniques

ODS RTF: Add a line in a table

Reply
N/A
Posts: 0

ODS RTF: Add a line in a table

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
SAS Super FREQ
Posts: 8,868

Re: ODS RTF: Add a line in a table

Posted in reply to deleted_user
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
Contributor
Posts: 30

Re: ODS RTF: Add a line in a table

Posted in reply to deleted_user
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
Ask a Question
Discussion stats
  • 2 replies
  • 149 views
  • 0 likes
  • 3 in conversation