03-02-2015 02:44 PM
I am creating a table with a two-level column and a one-level row. From the code below, I would like to highlight the entire column under the "Pass" header. However, I can only get the cell in the header labeled "Pass" to highlight. I tried adding *[s=<parent>] after the rowpctn entry in the column section of the TABLE statement, but that made all five columns under the "Percent" header have the same format as the "Percent" header cell. Is there something I missed that I should be doing instead?
value rslt 1='Pass'
value ol 0='Campus'
value rescol 1='grey';
value $term '201510'='Fall 2014'
proc tabulate data=ros_w_st_info missing;
class term_code course bid online campus_desc;
classlev result /s=[background=rescol.];
format result rslt. online ol. term_code $term.;
n='Students'*(all='Total' result='') rowpctn='Percent'*result=''*f=10.
where substr(term_code,6,1) = '0' and campus_code ^= 'J' and term_code in ('201510','201410');
title 'Campus-based Students Taking Pre-College and Core English and Math in Fall 2014';
03-02-2015 11:18 PM
Nobody can run your program without making up data and when making up data, there's no guarantee that someone will make up the same structure. Do you have a small test dataset that you can post or can you recast the program using one of the SASHELP datasets?