The SAS Output Delivery System and reporting techniques

Break line in ods rtf

Reply
Contributor
Posts: 43

Break line in ods rtf

Hi there,

When I export a table to rtf with Proc Report the sentence "break after" doesn't work. Does somebody know if it is possible solve this problem easily?

Thanks!!

Example:

proc report data=sashelp.class nowd;
break after sex/skip;
column sex name age;
define sex / order order=data width=3;
define name / order order=data ;
define age / order order=data ;
run;

Sex Name Age
F Alice 13
Barbara 13
Carol 14
Jane 12
Janet 15
Joyce 11
Judy 14
Louise 12
Mary 15
. . . . . . . . ..... . <- Blank space that I need!!
M Henry 14
James 12
Jeffrey 13
John 12
Philip 16
Robert 12
Ronald 15
Thomas 11
William 15
Contributor
Posts: 43

Re: Break line in ods rtf

I got something that looks pretty good!

ods rtf;
proc report data=sashelp.class nowd;
*break after sex/skip;
column sex name age;
define sex / order order=data width=3;
define name / order order=data ;
define age / order order=data ;
compute after sex;
line @1 ' ';
endcomp;
run;
ods rtf close;
SAS Super FREQ
Posts: 8,742

Re: Break line in ods rtf

Hi:
The reason for that behavior is that some PROC REPORT options were designed for the LISTING destination and they do not work well in other ODS destinations, such as RTF, PDF or HTML. This behavior is described in this Tech Support Note:
http://support.sas.com/techsup/unotes/SN/002/002549.html and workaround samples can be found here:
http://support.sas.com/rnd/base/topics/templateFAQ/repoption.html

cynthia
Contributor
Posts: 43

Re: Break line in ods rtf

Thank you very much Cynthia!
Ask a Question
Discussion stats
  • 3 replies
  • 117 views
  • 0 likes
  • 2 in conversation