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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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