BookmarkSubscribeRSS Feed
JuanVte
Calcite | Level 5
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
3 REPLIES 3
JuanVte
Calcite | Level 5
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;
Cynthia_sas
Diamond | Level 26
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
JuanVte
Calcite | Level 5
Thank you very much Cynthia!
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
  • 3 replies
  • 1890 views
  • 0 likes
  • 2 in conversation