Thank you for helping on how to create an auto report and keep blanks. I run into another problem - the Eexcel output takes two rows for each data after "STYLE={ PRETEXT=' ' ASIS=ON}" is added. Why? data t; order_c='001.0'; overall='64,491 '; title = ' Number of Customer '; output; order_c='002.0'; overall='100% '; title = ' Percentage of Customer '; output; order_c='002.1'; overall=' '; title = 'Customer Info '; output; order_c='002.2'; overall=' '; title = ' Dollar Spend '; output; order_c='003.0'; overall='$728 '; title = ' Average '; output; order_c='004.0'; overall='15% '; title = ' 0:Zero '; output; order_c='005.0'; overall='9% '; title = ' 1:<600 '; output; run; proc report data=t NOWD ; column title Overall order_c; DEFINE title /DISPLAY STYLE={CELLWIDTH=5in} ; DEFINE order_c / /*NOPRINT*/ ORDER; DEFINE overall /DISPLAY STYLE={CELLWIDTH=1.5in TEXTALIGN=R} STYLE(HEADER) = {font_weight=bold JUST=C}; COMPUTE order_c; IF substr(order_c,5,1) in ('0','2') THEN CALL DEFINE('_c1_', "STYLE","STYLE={ PRETEXT=' ' ASIS=ON}"); ELSE IF substr(order_c,5,1) = '1' THEN CALL DEFINE('_c1_', "STYLE","STYLE={font_weight=bold}"); ENDCOMP; run;
... View more