BookmarkSubscribeRSS Feed
Chunling
Calcite | Level 5

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;

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
  • 0 replies
  • 744 views
  • 0 likes
  • 1 in conversation