Hi Cynthia,
That's odd. Thought I had attached it. Obviously not. 🙂
I hadn't asked TS yet on this one. Was hoping it was something obvious I have missed.I seem to be having
I seem to be having problems attaching a file ending in .sas so I added it below.
--Ben
%let path=c:\temp\;
%let Tan = CXE59005; %let Tan2 = CXFAA72E; %let Tan3 = CXFCBE64; %let Tan4 = CXFCD49A; %let Tan5 = CXFDE6C3; %let Blue = CX2B6BB0;
title; * Generate fake data for testing; data pcts; input repid pct zip; topzip+1; if lag(repid)^=repid then topzip=1; cards; 1 53 43058 1 17 43220 1 12 43235 1 7 43081 1 4 43214 ;;;
ods escapechar='^';
options nodate nonumber nobyline orientation=landscape topmargin=.001in bottommargin=.001in leftmargin=.001in rightmargin=.001in; ods html close ;
ods pdf file="&path.ziptablerpt.pdf" notoc;
ods layout absolute y=0in x=0in width=10.98in height=8.48in; * Define an absolute layout container with optional size parms;
ods region y=5in x=.5in width=1.5in height=2.75in style={background=cyan};
proc report data=pcts style(report)={cellpadding=0pt} style(column)={height=.32in} style(report)={borderwidth=0 cellpadding=1pct}; by repid;
column topzip square pct zip boilerplate;
define topzip /display order noprint; define pct /display noprint; define zip /display noprint;
define square /display computed "«" right style(header)={font_size=16pt fontfamily='<ttf> Wingdings' vjust=m color=blue} style(column)={font_size=16pt width=.3in vjust=m just=c fontfamily='<ttf> Monotype Sorts'}; define boilerplate /display computed 'You are located here' left style(header)={font_size=7pt } style(column)={font_size=7.5pt width=1.1in vjust=t background=grey};
compute square /character length=10; square='n'; if topzip=1 then call define('square','style',"style={color=&red}"); if topzip=2 then call define('square','style',"style={color=&red2}"); if topzip=3 then call define('square','style',"style={color=&red3}"); if topzip=4 then call define('square','style',"style={color=&red4}"); if topzip=5 then call define('square','style',"style={color=&red5}"); endcomp;
compute boilerplate/character length=120; boilerplate=cats(pct)||'% of your Regional^{newline 1}/Customers reside in ^S={color=blue}'||left(zip); endcomp; run;
ods layout end; ods pdf close;
... View more