Thanks a lot.作者: shiyiming 时间: 2004-7-12 17:22 标题: I'v got it. 刚贴在这里,就找着了解决办法。想来也真是惭愧,非常简单的问题,答案在眼皮底下好几天都没有注意到。
现在贴出来和大家分享,希望各位使用时不再麻烦到处找。
使用语句:
ods rtf exclude all;
ods rtf select all;
即可将想要的结果输出,将不需要的结果排除。作者: shiyiming 时间: 2004-7-13 22:59 标题: Another Choice: ODS/PROC DOCUMENT You also have another choice, that is using ODS DOCUMENT firstly to save your outputs and then using PROC DOCUMENT to manipulate later.
For example,
[code:14629]ods document name =sasuser.myoutput; /*saved*/
proc ttest data=sashelp.class;
class sex;
var age;
run;
proc npar1way data=sashelp.class;
class sex;
var age;
run;
ods document close;
***Supported that you want to output the results of t test and wilcoxon rank sum test;
proc document name =sasuser.myoutput;
list / levels =all; *** to show you all the outputs, please find the outputs you want;
run;
ods rtf file ='c:\selected replay.rtf ' style=sasdocprinter; ***replay with the format you want;
proc document name =sasuser.myoutput; ***replay or re-output the selected output;
replay \Ttest#1\TTests#1 ;
replay \Npar1way#1\WilcoxonTest#1;
run;quit;
ods rtf close;[/code:14629]作者: shiyiming 时间: 2004-7-13 23:12 标题: Thanks! Thank you, Zibao.
I really appreciate your help. You always give me some surprising resolutions for certain problems.作者: shiyiming 时间: 2004-7-14 16:42 标题: re you can select what you want to output through 'ods select' statement;