<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PROC GREPLAY in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GREPLAY/m-p/587408#M18854</link>
    <description>&lt;P&gt;In my data has 2 treatments, In below code step1,For one treatment I have created 3 plots by proc sgplot and combine them in one plot on PDF&amp;nbsp; by using proc greplay , but client asked me to create it for another treatment too and the final output in 2 pages by treatment, one and two.&lt;BR /&gt;So, In below code step 2, i have created another 3 plots by by proc sgplot , So my question is&lt;BR /&gt;1) How can i create 2nd set of plots&amp;nbsp; to combine them in one plot on PDF&amp;nbsp; by using proc greplay?&lt;BR /&gt;2) once i create 2nd set of PDF with 2nd treatment, how can i combine 1st treatment plot pdf and 2nd treatment plot pdf?&lt;/P&gt;&lt;P&gt;I have used the below code....&lt;BR /&gt;/*** Step1-code: for Treatmet 1***/&lt;BR /&gt;/***created 3 plots by proc sgplot***/&lt;BR /&gt;%* SGPLOT1:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot1'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT2:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot2'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT3:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot3'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all noborder device=png300 nodisplay;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot1.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot2.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot3.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf file="x/swss3_0/table/oncoprint.pdf" title= "&amp;amp;tabno";&lt;/P&gt;&lt;P&gt;proc greplay nofs igout=work.gseg tc=work.tempcat;&lt;BR /&gt;tdef spec4&lt;BR /&gt;1/ llx=4 lly=71&lt;BR /&gt;ulx=4 uly=90&lt;BR /&gt;urx=61 ury=90&lt;BR /&gt;lrx=61 lry=71&lt;/P&gt;&lt;P&gt;2/ llx=1 lly=10&lt;BR /&gt;ulx=1 uly=72&lt;BR /&gt;urx=70 ury=72&lt;BR /&gt;lrx=70 lry=10&lt;/P&gt;&lt;P&gt;3/ llx=61 lly=10&lt;BR /&gt;ulx=61 uly=73&lt;BR /&gt;urx=100 ury=73&lt;BR /&gt;lrx=100 lry=10&lt;/P&gt;&lt;P&gt;4/ llx=0 lly=0&lt;BR /&gt;ulx=0 uly=100&lt;BR /&gt;urx=100 ury=100&lt;BR /&gt;lrx=100 lry=0;&lt;BR /&gt;template spec4;&lt;BR /&gt;treplay 1:1 2:2 3:3 4:4;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;/***Step2- code: for Treatmet 2***/&lt;BR /&gt;/***created 3 plots by proc sgplot***/&lt;BR /&gt;%* SGPLOT1:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot5'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT2:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot6'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT3:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot7'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all noborder device=png300 nodisplay;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot5.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot6.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot7.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf file="x/swss3_0/table/oncoprint.pdf" title= "&amp;amp;tabno";&lt;/P&gt;&lt;P&gt;proc greplay nofs igout=work.gseg tc=work.tempcat;&lt;BR /&gt;tdef spec5&lt;BR /&gt;1/ llx=4 lly=71&lt;BR /&gt;ulx=4 uly=90&lt;BR /&gt;urx=61 ury=90&lt;BR /&gt;lrx=61 lry=71&lt;/P&gt;&lt;P&gt;2/ llx=1 lly=10&lt;BR /&gt;ulx=1 uly=72&lt;BR /&gt;urx=70 ury=72&lt;BR /&gt;lrx=70 lry=10&lt;/P&gt;&lt;P&gt;3/ llx=61 lly=10&lt;BR /&gt;ulx=61 uly=73&lt;BR /&gt;urx=100 ury=73&lt;BR /&gt;lrx=100 lry=10&lt;/P&gt;&lt;P&gt;4/ llx=0 lly=0&lt;BR /&gt;ulx=0 uly=100&lt;BR /&gt;urx=100 ury=100&lt;BR /&gt;lrx=100 lry=0;&lt;BR /&gt;template spec5;&lt;BR /&gt;treplay 5:5 6:6 7:7 8:8;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 02:32:33 GMT</pubDate>
    <dc:creator>chander_3456</dc:creator>
    <dc:date>2019-09-10T02:32:33Z</dc:date>
    <item>
      <title>PROC GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GREPLAY/m-p/587408#M18854</link>
      <description>&lt;P&gt;In my data has 2 treatments, In below code step1,For one treatment I have created 3 plots by proc sgplot and combine them in one plot on PDF&amp;nbsp; by using proc greplay , but client asked me to create it for another treatment too and the final output in 2 pages by treatment, one and two.&lt;BR /&gt;So, In below code step 2, i have created another 3 plots by by proc sgplot , So my question is&lt;BR /&gt;1) How can i create 2nd set of plots&amp;nbsp; to combine them in one plot on PDF&amp;nbsp; by using proc greplay?&lt;BR /&gt;2) once i create 2nd set of PDF with 2nd treatment, how can i combine 1st treatment plot pdf and 2nd treatment plot pdf?&lt;/P&gt;&lt;P&gt;I have used the below code....&lt;BR /&gt;/*** Step1-code: for Treatmet 1***/&lt;BR /&gt;/***created 3 plots by proc sgplot***/&lt;BR /&gt;%* SGPLOT1:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot1'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT2:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot2'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT3:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot3'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment1";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all noborder device=png300 nodisplay;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot1.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot2.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot3.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf file="x/swss3_0/table/oncoprint.pdf" title= "&amp;amp;tabno";&lt;/P&gt;&lt;P&gt;proc greplay nofs igout=work.gseg tc=work.tempcat;&lt;BR /&gt;tdef spec4&lt;BR /&gt;1/ llx=4 lly=71&lt;BR /&gt;ulx=4 uly=90&lt;BR /&gt;urx=61 ury=90&lt;BR /&gt;lrx=61 lry=71&lt;/P&gt;&lt;P&gt;2/ llx=1 lly=10&lt;BR /&gt;ulx=1 uly=72&lt;BR /&gt;urx=70 ury=72&lt;BR /&gt;lrx=70 lry=10&lt;/P&gt;&lt;P&gt;3/ llx=61 lly=10&lt;BR /&gt;ulx=61 uly=73&lt;BR /&gt;urx=100 ury=73&lt;BR /&gt;lrx=100 lry=10&lt;/P&gt;&lt;P&gt;4/ llx=0 lly=0&lt;BR /&gt;ulx=0 uly=100&lt;BR /&gt;urx=100 ury=100&lt;BR /&gt;lrx=100 lry=0;&lt;BR /&gt;template spec4;&lt;BR /&gt;treplay 1:1 2:2 3:3 4:4;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;/***Step2- code: for Treatmet 2***/&lt;BR /&gt;/***created 3 plots by proc sgplot***/&lt;BR /&gt;%* SGPLOT1:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot5'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT2:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot6'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;%* SGPLOT3:&lt;BR /&gt;ods graphics on / border=no reset=index imagename='plot7'&lt;BR /&gt;proc sgplot data=dataset ;&lt;BR /&gt;by trtp;&lt;BR /&gt;where trtp="treatment2";&lt;BR /&gt;vbarparm category=subjid response=count / fillattrs=(color=green);&lt;BR /&gt;yaxis values = (0 to 8 by 1) valueattrs=(weight=bold size=12pt) ;&lt;BR /&gt;xaxis display = (novalues) label='';&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all noborder device=png300 nodisplay;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot5.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot6.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;goptions noborder iback="&amp;amp;outdir./plot7.png" imagestyle=fit;&lt;BR /&gt;proc gslide;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf file="x/swss3_0/table/oncoprint.pdf" title= "&amp;amp;tabno";&lt;/P&gt;&lt;P&gt;proc greplay nofs igout=work.gseg tc=work.tempcat;&lt;BR /&gt;tdef spec5&lt;BR /&gt;1/ llx=4 lly=71&lt;BR /&gt;ulx=4 uly=90&lt;BR /&gt;urx=61 ury=90&lt;BR /&gt;lrx=61 lry=71&lt;/P&gt;&lt;P&gt;2/ llx=1 lly=10&lt;BR /&gt;ulx=1 uly=72&lt;BR /&gt;urx=70 ury=72&lt;BR /&gt;lrx=70 lry=10&lt;/P&gt;&lt;P&gt;3/ llx=61 lly=10&lt;BR /&gt;ulx=61 uly=73&lt;BR /&gt;urx=100 ury=73&lt;BR /&gt;lrx=100 lry=10&lt;/P&gt;&lt;P&gt;4/ llx=0 lly=0&lt;BR /&gt;ulx=0 uly=100&lt;BR /&gt;urx=100 ury=100&lt;BR /&gt;lrx=100 lry=0;&lt;BR /&gt;template spec5;&lt;BR /&gt;treplay 5:5 6:6 7:7 8:8;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 02:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GREPLAY/m-p/587408#M18854</guid>
      <dc:creator>chander_3456</dc:creator>
      <dc:date>2019-09-10T02:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GREPLAY/m-p/587800#M18860</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot1.png" imagestyle=fit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc gslide / &lt;STRONG&gt;name='plot1'&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot2.png" imagestyle=fit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc gslide / &lt;STRONG&gt;name='plot2'&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot3.png" imagestyle=fit;&lt;BR /&gt;proc gslide / &lt;STRONG&gt;name='plot3'&lt;/STRONG&gt;;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Combine these using ...&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;treplay 1:&lt;STRONG&gt;plot1&lt;/STRONG&gt; 2:&lt;STRONG&gt;plot2&lt;/STRONG&gt; 3:&lt;STRONG&gt;plot3&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot5.png" imagestyle=fit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc gslide / &lt;STRONG&gt;name='plot5'&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot6.png" imagestyle=fit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc gslide / &lt;STRONG&gt;name='plot6'&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;goptions noborder iback="&amp;amp;outdir./plot7.png" imagestyle=fit;&lt;BR /&gt;proc gslide / &lt;STRONG&gt;name='plot7'&lt;/STRONG&gt;;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Combine these using ...&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;treplay 1:&lt;STRONG&gt;plot5&lt;/STRONG&gt; 2:&lt;STRONG&gt;plot6&lt;/STRONG&gt; 3:&lt;STRONG&gt;plot7&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GREPLAY/m-p/587800#M18860</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-09-11T11:50:18Z</dc:date>
    </item>
  </channel>
</rss>

