<?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 Re: SGPLOT Chart on Single PDF using DO/END LOOP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550144#M152742</link>
    <description>&lt;P&gt;I'd like to notice one thing, your topic title mentioned for SGPLOT whereas given SAS code is for GPLOT. SGPLOT and GPLOT are different SAS procedures, aren't it?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2019 08:31:20 GMT</pubDate>
    <dc:creator>zahir</dc:creator>
    <dc:date>2019-04-11T08:31:20Z</dc:date>
    <item>
      <title>SGPLOT Chart on Single PDF using DO/END LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550030#M152688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code working. I am able to get only the last plot in the pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Problem is: I want to get all 3 charts on a single pdf on a unix server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please advise.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plot;
input _yyyymm yymmn6. var1 var2 var3 group $;
datalines;
200903 1 2 3 grp1
200906 4 5 6 grp1
200909 7 8 9 grp1
200912 10 11 12 grp1
200903 1 2 3 grp2
200906 4 5 6 grp2
200909 7 8 9 grp2
200912 10 11 12 grp2
200903 1 2 3 grp3
200906 4 5 6 grp3
200909 7 8 9 grp3
200912 10 11 12 grp3
;
run;

%macro plot_percentagezero(_varStart=,_varStop=);
/*ods pdf file="/path/on/unix/server/ReportForSAS.pdf" startpage=never;*/
goptions reset=all cback=white border htext=10pt htitle=12pt;

axis1 label=none;
axis2 label=(angle=90 "Percentage");

symbol1 interpol=join color=vibg  height=14pt font='Arial' value='80'x;  /* GRP1 */
symbol2 interpol=join color=mob   height=14pt font='Arial' value='A3'x;  /* GRP2 */
symbol3 interpol=join color=depk  height=14pt font='Arial' value='A5'x;  /* GRP3 */

legend1 repeat=1 shape=symbol(5,2.5) label=none frame;

%do i = &amp;amp;_varStart. %to &amp;amp;_varStop. ;
proc gplot data=PLOT;
   plot (var1 var2 var3 )*_YYYYMM / overlay legend=legend1
                                       haxis=axis1 vaxis=axis2;
WHERE lowcase(group)=lowcase("grp&amp;amp;i.");
title "Plot on :: grp&amp;amp;i.";
run;
quit;
%end;

/*ods pdf close;*/
%mend plot_percentagezero;

%plot_percentagezero(_varStart=1,_varStop=3);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Apr 2019 18:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550030#M152688</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-04-10T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Chart on Single PDF using DO/END LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550032#M152690</link>
      <description>&lt;P&gt;See if removing the STARTPAGE=NEVER fixes it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation for ODS PDF:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H4 class="xis-argument"&gt;NEVER&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;specifies not to insert page breaks, even before graphics procedures.&lt;/P&gt;
&lt;DIV class="xis-caution" id="p111u7ygdffijbn166dn9pd2aaksa"&gt;
&lt;DIV class="xis-cautionGenText"&gt;CAUTION:&lt;/DIV&gt;
&lt;DIV class="xis-cautionLeadin"&gt;Each graph normally requires an entire page. The default behavior forces a new page after a graphics procedure. STARTPAGE=NEVER turns off that behavior, so specifying STARTPAGE= NEVER might cause graphics to overprint.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 10 Apr 2019 18:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550032#M152690</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-10T18:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Chart on Single PDF using DO/END LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550144#M152742</link>
      <description>&lt;P&gt;I'd like to notice one thing, your topic title mentioned for SGPLOT whereas given SAS code is for GPLOT. SGPLOT and GPLOT are different SAS procedures, aren't it?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 08:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-Chart-on-Single-PDF-using-DO-END-LOOP/m-p/550144#M152742</guid>
      <dc:creator>zahir</dc:creator>
      <dc:date>2019-04-11T08:31:20Z</dc:date>
    </item>
  </channel>
</rss>

