Thank you, Cythnia.
When I used your codes, it said "Variable indent is uninitialized".
It was in the test data. I am wondering how to fix it.
28 proc report data=test split='~'; 29 column ord name trt1 trt2 indent pvalue; 30 define ord / order noprint; 31 compute name; 32 if indent=0 then do; 33 call define(_col_,'style','style=[fontweight=bold]'); 34 end; 35 else if indent=1 then do; 36 call define(_col_, 'style','style=[asis=on]'); 37 end; 38 endcomp; 39 40 run;
NOTE: Variable indent is uninitialized. NOTE: There were 26 observations read from the data set WORK.TEST.
... View more