My Code is add as follow, the output issue is the data in class9 can't display completely, and I have add the screen print in attachment, thank you very much for your help! data class; set sashelp.class; length name9 $500.; num=strip(put(_n_, best.)); if _n_<=5; name9='{\field {\*\fldinst HYPERLINK \\l "'|| "bkidx"||strip(num)||'"}{\fldrslt '||strip(name)||'}}'; run; data class2; set sashelp.class; /* if _n_=1;*/ length name9 $500.; num=strip(put(_n_, best.)); if _n_<=5; name9=compbl('{\*\bkmkstart bkidx'||strip(num)||'}{\*\ud{\*\bkmkstart bkidx'||strip(num)||'}}}{\*\bkmkend bkidx'||strip(num)||'}'||strip(name)); run; data class9; set class class2; run; ods tagsets.rtf file="test.rtf" ; proc report data=class9 nowd style={protectspecialchars=off }; column name9 height; define name9 / display 'Table' left style={cellwidth=5cm just=left}; define height / display 'Page' style={cellwidth=5cm just=right}; run;
... View more