Dear SAS GRAPH community, We are attempting to create specialized graphs using the following steps. Any ideas or help would be most appreciated. step 1: We are creating 4 different box plots from the following code which is using both proc template and proc sgrender. Now we want to put these 4 boxplots adjacent to each other on one sheet or one graphical output so that we can see all the 4 boxplots on one graph. step 2 : The best way to show multiple graphs on one output is to use proc greplay.Proc greplay uses the grpahs that are produced and saved in a catalog. Problem: How can I save the 4 graphs that are produced in step 1 (using proc template and proc sgrender) to a catalog? see the code below. %let varlist=rebate std_bid plan_bid risk_score; %macro chk; %let j=0; %do %while(%scan(&varlist,&j+1,%str( )) ne %str( )); %let j = %eval(&j+1); %let var = %scan(&varlist,&j,%str( )); PROC SQL; CREATE TABLE WORK.&var.x1 AS SELECT t1.year, t1.&var._min as min2, t1.&var._p10 as min, t1.&var._p25 as q1, t1.&var._median as median, t1.&var._mean as mean, t1.&var._p75 as q3, t1.&var._p90 as max, t1.&var._max as max2, t1.enrollment, t1.state FROM WORK.NEW t1 WHERE t1.year >= 2012 and t1._type_=32 and t1.state in (6,12,36,42) ORDER BY t1.state, t1.year; QUIT; PROC TRANSPOSE DATA=WORK.&var.x1 OUT=WORK.&var.x2 (LABEL="Transposed Data Set" drop=newlabel rename=(col1=&var)) PREFIX=Col NAME=quantile LABEL=newlabel ; BY state year; VAR min q1 median mean q3 max; RUN; /*Producing boxplots*/ proc template; define statgraph boxplotparm1; begingraph; entrytitle "&var Levels"; layout overlay; boxplotparm y=&var x=area_yr stat=quantile/ meanattrs=(color=blue size=8px symbol=DiamondFilled weight=bold) orient=horizontal; endlayout; endgraph; end; run; proc sgrender data=work.&var.x4 template=boxplotparm1; where enrollment>400000; run; %end; %mend chk; %chk;
... View more