Hi there,
I'm wondering if what I want to do in ODS with PROC REPORT is possible. Currently the following code works but as expected -- the % Yes column header spans the two columns, but one row higher than I want it to. Any way to work around that?
Thanks
Try changing the column statement to this
column ('DIVISION' DIVISION) ('No' No) ('% No' pct_n_total) ('Yes' Yes) ('% Yes' pct_y_total bar);Replace the columns labels with '' (missing) in the define statements, such as
define DIVISION / '' ;
define No / '' format = comma15.0;
define pct_n_total / '' format = percent7.3;
define Yes / '' format = comma15.0;
define pct_y_total / '' format = percent7.3
style(column) = [borderrightcolor=black borderrightwidth=.5pt];
define bar / '' style(column) = [font_size=4pt
fontfamily='Courier New'
vjust=middle
just=left cellpadding=0];This should give you what you are looking for
Try changing the column statement to this
column ('DIVISION' DIVISION) ('No' No) ('% No' pct_n_total) ('Yes' Yes) ('% Yes' pct_y_total bar);Replace the columns labels with '' (missing) in the define statements, such as
define DIVISION / '' ;
define No / '' format = comma15.0;
define pct_n_total / '' format = percent7.3;
define Yes / '' format = comma15.0;
define pct_y_total / '' format = percent7.3
style(column) = [borderrightcolor=black borderrightwidth=.5pt];
define bar / '' style(column) = [font_size=4pt
fontfamily='Courier New'
vjust=middle
just=left cellpadding=0];This should give you what you are looking for
thanks for the information!
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.