Hi:
If you want "lined up" text to display properly, you have to surround the text with (pre) and (/pre) --
except where I have ( you would use [ and where I have ), you would put ] This will work just like the <pre> tag in HTML, except for the forum you have to use [ and ]
For example, you don't see the [ pre ] and [ /pre ] below -- but everything will be lined up when viewed in the forum posting window:
[pre]
_________________________________
|Treatment | Visit | n (%) |
|__________ |______ |________ |
| | Visit 1 | xx(xx.x) |
|Treatment1 |______ |_______ |
| | VIsit 2 | xx(xx.x) |
|__________ |______ |________ |
|________________________________|
| | Visit 1 | xx(xx.x) |
|Treatment2 |______ |_______ |
| | VIsit 2 | xx(xx.x) |
|__________ |______ |________ |
[/pre]
So, to answer your question ... the new SPANROWS option would accomplish the "merged" columns that you want for Treatment1 and Treatment2. This works in SAS 9.2 -- but not in earlier releases.
Next, it seems to me that all your variables are character or being treated as character, so the SUMMARIZE option in the BREAK statement isn't appropriate. Also, the SKIP option is ignored for ODS HTML, ODS RTF and ODS PDF (SKIP is what you'd use in LISTING to get a blank line) . For ODS destinations, you need a COMPUTE block to skip a line:
[pre]
compute after treatment;
line ' ';
endcomp;
[/pre]
If you have SAS 9.2, the code would be as shown below. If you only have SAS 9.1.3, the PROC REPORT statement would be:
[pre] proc report data=temp nowd; [/pre]
cynthia
[pre]
** SAS 9.2 code;
ods listing close;
ods rtf file='c:\temp\visit.rtf';
proc report data=temp nowd spanrows;
column treatment visit n1;
define treatment/ order order=data
style(column)={vjust=m};
define visit/ display order=data;
define n1/display;
** break after treatment / summarize suppress;
compute after treatment;
line ' ';
endcomp;
run;
ods rtf close;
[/pre]