Since ODS Graphics (sgplot) doesn't directly work with SAS/Graph Proc Greplay (which allows you to combine SAS/Graph graphs), it looks like you're saving the sgplot graphs as images, and then displaying the images in blank SAS/Graph gslides, and 'replaying' them into a custom greplay template to combine them.
I would recommend that when you run the gslide commands, use the name= option to give the grseg's specific/non-default names, and then use those names when you treplay the grsegs back into the template. Also, you'll either need to start a fresh SAS session each time you run this job, or delete the grsegs each time you run it - otherwise I think that if the grseg name is already taken, then it will append a number to the name (to get a unique name).
Once you have made those enhancements, and have specific/unique names on all your grsegs, I think you should be able to more easily use proc greplay.
goptions noborder iback="&outdir./plot1.png" imagestyle=fit; proc gslide / name='plot1'; run;
goptions noborder iback="&outdir./plot2.png" imagestyle=fit; proc gslide / name='plot2'; run;
goptions noborder iback="&outdir./plot3.png" imagestyle=fit; proc gslide / name='plot3'; run;
Combine these using ...
treplay 1:plot1 2:plot2 3:plot3;
goptions noborder iback="&outdir./plot5.png" imagestyle=fit; proc gslide / name='plot5'; run;
goptions noborder iback="&outdir./plot6.png" imagestyle=fit; proc gslide / name='plot6'; run;
goptions noborder iback="&outdir./plot7.png" imagestyle=fit; proc gslide / name='plot7'; run;
Combine these using ...
treplay 1:plot5 2:plot6 3:plot7;
... View more