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
SAS Super FREQ
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!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 1218 views
  • 0 likes
  • 2 in conversation