我需要你的帮助!
我正在尝试使用 proc 报告在 SAS 中创建输出。虽然我在选项 center_vertical 和 center_horizontal 中使用,如下所示,输出中的“失败规则”列(即计算)不是居中,而是与左侧对齐。任何人都可以帮忙吗?
options missing = "";
ods listing close;
ods tagsets.excelxp style=mystyle file="./Pre-Model_Diagnostic_&ProjectName..xml"
options(Sheet_Name="Pre-Model Diagnostic" hidden_columns="&HideCol"
autofit_height='yes' autofilter='all' frozen_rowheaders='2' frozen_headers='yes' width_fudge='1.25' center_vertical='yes' center_horizontal='yes' )
.
.
.
.
define OverallRule_Fail /"Fail/Rule" center ;
define OverallRule_Watch /"Warning/Rule" center ;
define FailingRule /"Failing/Rule" center style(column)={tagattr='Formula:RC[-2]&char(10)&RC[-1]'} ;
compute FailingRule;
if missing(OverallRule_Fail)=0
then call define(_col_,"style","style={background=%RGBHEX(210,073,042) foreground='black' fontfamily=calibri}");
else if missing(OverallRule_Fail)=1 and missing(OverallRule_Watch)=0
then call define(_col_,"style","style={background=%RGBHEX(238,182,169) foreground='black' fontfamily=calibri}");
endcomp;