Good Morning all,
I am seeing formatting problems while adding a column to the existing code.
Existing:
After adding new column:
ods _all_ close;
ods excel
/* file="%sysget(DSR_DIR)/NonKYC_Delta_CRS_CCMP6754_Response_File_View_&fDate2..xlsx"*/
file="&DSR_DIR./NonKYC_Delta_CRS_CCMP6754_Response_File_View_&fDate2._upd1.xlsx"
style=HTMLBlue;
ods Excel options (
sheet_name="Summary"
start_at="A1"
tab_color="gold"
autofilter="all"
frozen_headers="on"
FLOW="HEADERS"
FITTOPAGE="OFF"
absolute_column_width="6,12,12,26,7,11,7,7,7,9,9,7");
proc report data=Stat_look_week ;
columns Week Day Date Workflow_BU LOB Names_Screened Hits Alerts Hit_Rate Alert_Rate
shared_acts acts_diff;
define Week /display 'Week'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:no' just=c};
define Day /display 'Day'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:yes' just=l};
define Date /display 'Date'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:no' just=l};
define Workflow_BU /display 'Workflow Business Unit'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=l};
define LOB /display 'LOB'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=c}
style(column)={tagattr='wraptext:no' just=c};
define Names_Screened /Display width=11 'Names Screened'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Hits /display 'Hits'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Alerts /display 'Alerts'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Hit_Rate /display 'Hit Rate'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Alert_Rate /display 'Alert Rate'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define shared_acts /display 'shared_acts'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define acts_diff /display 'acts_diff'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
compute LOB;
if substr(LOB,1,4)='Week' then do;
call define(_row_,"style","style={background=lightgray}");
call define(_col_,"style","style={tagattr='wraptext:no' just=r fontstyle=italic fontweight=bold}");
end;
endcomp;
run;
Please let me know if i need to add any additional options to remain same format .
Thanks in advance !
DUPLICATE THREAD
DO NOT REPLY HERE
Reply at https://communities.sas.com/t5/SAS-Programming/proc-report-formatting-issue/td-p/857373/jump-to/firs...
Good Morning all,
I am seeing formatting problems while adding a column to the existing code.
Existing:
After adding new column:
ods _all_ close;
ods excel
/* file="%sysget(DSR_DIR)/NonKYC_Delta_CRS_CCMP6754_Response_File_View_&fDate2..xlsx"*/
file="&DSR_DIR./NonKYC_Delta_CRS_CCMP6754_Response_File_View_&fDate2._upd1.xlsx"
style=HTMLBlue;
ods Excel options (
sheet_name="Summary"
start_at="A1"
tab_color="gold"
autofilter="all"
frozen_headers="on"
FLOW="HEADERS"
FITTOPAGE="OFF"
absolute_column_width="6,12,12,26,7,11,7,7,7,9,9,7");
proc report data=Stat_look_week ;
columns Week Day Date Workflow_BU LOB Names_Screened Hits Alerts Hit_Rate Alert_Rate
shared_acts acts_diff;
define Week /display 'Week'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:no' just=c};
define Day /display 'Day'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:yes' just=l};
define Date /display 'Date'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={ tagattr='wraptext:no' just=l};
define Workflow_BU /display 'Workflow Business Unit'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=l};
define LOB /display 'LOB'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=c}
style(column)={tagattr='wraptext:no' just=c};
define Names_Screened /Display width=11 'Names Screened'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Hits /display 'Hits'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Alerts /display 'Alerts'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Hit_Rate /display 'Hit Rate'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define Alert_Rate /display 'Alert Rate'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define shared_acts /display 'shared_acts'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
define acts_diff /display 'acts_diff'
style(header)={tagattr='wraptext:yes' height = 44 vjust=t just=l}
style(column)={tagattr='wraptext:no' just=r};
compute LOB;
if substr(LOB,1,4)='Week' then do;
call define(_row_,"style","style={background=lightgray}");
call define(_col_,"style","style={tagattr='wraptext:no' just=r fontstyle=italic fontweight=bold}");
end;
endcomp;
run;
Please let me know if i need to add any additional options to remain same format .
Thanks in advance !
Please do not double post. It only forces us to merge the threads.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.