Cynthia; Thanks for the tip on the "placeholder" issue-I knew I was close, but was off on the syntax. I do like your idea on splitting the report-it may get a little complicated as I have another "report" in there in that I had used Proc Report to fake a report header at the top that connects through to other pages in the report. Duly noted on attempting to muck with the gridlines. I will leave as is. Code is below and is only for one page (of 6) of entire report. Thanks for your assistance once again! Lawrence ods escapechar="\"; ods listing gpath="P:\" ; ods graphics on/reset=all antialias=on width=9in height=5in border=no; options nodate nonumber center leftmargin=.25in rightmargin=.25in topmargin=.05in bottommargin=.15in orientation=landscape; symbol v = dot ; ods pdf file='P:\xxx JULY 2012a.pdf' style=Styles.XCL dpi=300; ods pdf anchor='menu'; proc report data=b nowd spanrows NOCENTER STYLE(column)={background=white borderbottomcolor=white borderleftcolor=white bordertopcolor=white borderrightcolor=white fontsize=0pt cellpadding=0pt cellspacing=0pt} STYLE(header)={ cellspacing=0pt cellpadding=0pt color=white background=blue borderbottomcolor=black borderbottomwidth=1pt borderleftcolor=black borderleftwidth=1pt bordertopcolor=black bordertopwidth=1pt borderrightcolor=black borderrightwidth=1pt}; columns a b c d e; define a/'Report Menu' STYLE(Header)= {URL="#menu"}; define b /'Scorecard' STYLE(Header)= {URL="#score"}; define c /'Trend Charts' STYLE(Header)= {URL="#trend"}; define d /'Control Charts' STYLE(Header)= {URL="#control"}; define e /'Definitions' STYLE(Header)= {URL="#definitions"}; run; ods pdf text="\S={leftmargin=1.5in preimage='T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\TEMPLATE\xxx.bmp' font_size=7 font_weight=bold} xxx"; ods pdf startpage=no; proc report data=measuresIII headline headskip nowd spanrows style(report)={font_size=6pt cellpadding=1pt cellspacing=1pt} style(column) = {font = ("arial",6.0pt) just=center} ;; columns fac_id color colorstar pctchange COLORSCHEME ('PROCESS' ("\{style[foreground=white]Placeholder}" ComplianceHHa,ComplianceHH complianceISOa,complianceISO DOT_1000a,DOT_1000 complianceATPa,complianceATP)) _emp ('OUTCOME'('1 Month' numa,num /*lastmoa,lastmo*/) ('3 Months' lastmoa3,lastmo3) ('12 Months' numa12,num12 lastmoa12,lastmo12)) ; define _emp/' ' style={width=.3% background=white color=white}; DEFINE colorstar/' ' style(header)={background=white} noprint analysis; DEFINE color/' ' noprint analysis; DEFINE FAC_ID/group 'STUDY PERIOD---->' order format=$code. style(header)={background=white} style(column)={LINKCOLOR=black background=white color=black}; DEFINE numa/ACROSS ' ' style(header)={background=white}; DEFINE num/"MAY12" center style(header)={background=yellow}; DEFINE lastmoa/ACROSS ' ' style(header)={background=white}; DEFINE lastmo/ "MAY12" center style(header)={background=yellow}; DEFINE numa3/ACROSS ' ' style(header)={background=white}; DEFINE num3/"MAR12/to/MAY12" center style(header)={background=yellow}; DEFINE lastmoa3/ACROSS ' ' style(header)={background=white}; DEFINE lastmo3/"MAR12/to/MAY12*" center style(header)={background=yellow}; DEFINE numa12 /ACROSS ' ' style(header)={background=white}; DEFINE num12/ "JUN11/to/MAY12" center style(header)={background=yellow} ; DEFINE lastmoa12/Across ' ' style(header)={background=white}; DEFINE lastmo12/"JUN11/to/MAY12" center style(header)={background=yellow}; DEFINE pctchange/' ' noprint analysis; DEFINE ComplianceHHa /across ' ' style(header)={background=white}; DEFINE ComplianceHH /"Q2 2012" style(header)={background=yellow} format=percent10. style(column)=[background=sigf. color=sigg.]; DEFINE complianceISOa /across ' ' style(header)={background=white}; DEFINE complianceISO /"&DATEMACRO" style(header)={background=yellow} format=percent10. style(column)=[background=sigb. color=sigc.]; DEFINE DOT_1000a /across ' ' style(header)={background=white}; DEFINE DOT_1000 /"&DATEMACRO" style(header)={background=yellow}; DEFINE complianceATPa /across ' ' style(header)={background=white}; DEFINE complianceATP /"&DATEMACRO" style(header)={background=yellow} format=percent10. style(column)={background=sigd. color=sige.}; DEFINE colorscheme/ analysis noprint; compute COMPLIANCEATP; if colorscheme.sum=0 then call define(_COL_,'style','style={background=lightgray color=lightgray}'); /*else if FACILITY in ('ZZC','ZTO') then call define(_ROW_,'style','style={background=lightgray color=black}'); else if FACILITY in ('ZTO') then call define(_ROW_,'style','style={background=lightgray color=black }');*/ endcomp; compute lastmo3; if fac_id not in ('ZZC','AAZ','ZTO') and pctchange.sum=1 then call define(_COL_,'style','style={preimage="T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\FORMATS\green_arrow.bmp"}'); if fac_id not in ('ZZC','AAZ','ZTO') and pctchange.sum=0 then call define(_COL_,'style','style={preimage="T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\FORMATS\red_arrow.bmp"}'); endcomp; compute num; if colorstar.sum=1 then call define(_COL_,'style','style={background=white preimage="T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\FORMATS\greenstar.bmp"}'); if fac_id not in ('ZZC','ZTO') and colorstar.sum=0 then call define(_COL_,'style','style={background=white preimage="T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\FORMATS\blank.bmp"}'); if fac_id in ('ZZC','ZTO') then call define(_COL_,'style','style={color=lightgray}'); *if fac_id in ('AAZ') then call define(_COL_,'style','style={color=white}'); endcomp; compute fac_id; /*urlstring=compress("#"||fac_id);*/ /* IF fac_id NOT IN ('AAZ','ZZC') then call define(_COL_,'url',urlstring) ;*/ if fac_id in ('ZTO') then call define(_ROW_,'style','style={background=lightgray color=black}'); if fac_id in ('ZTO') then call define(_COL_,'style','style={background=lightgray color=black}'); if fac_id in ('ZZC') then call define(_ROW_,'style','style={background=lightgray color=black}'); if fac_id in ('AAZ') then call define(_ROW_,'style','style={background=white color=black FONTWEIGHT=bold}'); *IF fac_id in ('ZTO') then line ' '; endcomp; compute lastmo12; if fac_id not in ('ZZC','AAZ','ZTO') and color.sum=1 then call define(_COL_,'style','style={background=blue color=white}'); if fac_id not in ('ZZC','AAZ','ZTO') and color.sum=0 then call define(_COL_,'style','style={background=red color=black}'); endcomp; compute _emp; if fac_id in ('ZTO','ZZC','AAZ') then call define(_COL_,'style','style={background=lightgray color=lightgray}'); endcomp; run; ods pdf close;
... View more