Here's one way to do it, using SAS/Graph Proc Greplay:
data my_data; set sashelp.stocks (where=(date>='01jan2005'd)); format date monname3.; quarter=put(date,yyq.); run;
axis1 label=none;
goptions nodisplay;
goptions xpixels=500 ypixels=400; title ls=3.0 "IBM Graph"; footnote h=5pct " "; proc gchart data=my_data (where=(stock='IBM')); vbar date / discrete type=sum sumvar=close subgroup=quarter maxis=axis1 raxis=axis1 name='graph1'; run;
goptions xpixels=500 ypixels=400; title ls=3.0 "Intel Graph"; footnote h=5pct " "; proc gchart data=my_data (where=(stock='Intel')); vbar date / discrete type=sum sumvar=close subgroup=quarter maxis=axis1 raxis=axis1 name='graph2'; run;
goptions display; goptions xpixels=500 ypixels=800; proc greplay igout=work.gseg tc=sashelp.templt template=v2s nofs; treplay 1:graph1 2:graph2; run;
... View more