Hi: It seems to me that you are trying to indent with PRETEXT=. I'm not sure why you're doing that. In my example, the indenting happened with LEFTMARGIN= style attribute. Next, it seems to me that you are creating SORT variable, but then you're not USING the SORT variable in your PROC REPORT step. You can only test in a COMPUTE block what is in the COLUMN statement. WHERE do you list SORT in your COLUMN statement? And, it looks like you are assigning sequential numbers to each category. Based on what you originally showed, you want SORT to be Sort Measure 1 Safe_Total 2 Safe_Outcomes 3 Freq_OSI 4 AWOL 5 Safe_Practice_Score So you are going to control ORDER using the SORT variable, but that means if you want to TEST on SORT, it has to be in the COLUMN statement. AND, it seems to me that you want to indent if SORT=3 or SORT=4.....not if SORT=1. It looks to me like 1, 2 and 5 are NOT indented. Also, you do NOT need '_c1_' in your CALL DEFINE statement. I don't see an ACROSS usage in your code. A simple _COL_ will work here. See the example below. I just made some fake data without all your variables or rows. But I did put SORT in the COLUMN statement. cynthia data janerept; length measure $20; infile datalines dlm=','; input sort measure $ value; return; datalines; 1, Safe_Total, 10 2, Safe_Outcomes, 20 3, Freq_OSI, 21 4, AWOL, 22 5, Safe_Practice_Score, 30 ; run; title; ods listing close; ods pdf file='c:\temp\janerept.pdf' style=journal notoc; proc report data=janerept nowd; column sort measure value; define sort / order noprint; define measure / display 'Measure'; define value / sum 'Value'; compute measure; if sort in (2, 3) then call define(_col_,'style','style={leftmargin=12pt}'); else if sort = 1 then call define(_col_,'style','style={font_weight=bold}'); endcomp; run; ods pdf close;
... View more