<?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: Printing four graphs on to one page. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384273#M24764</link>
    <description>&lt;P&gt;You could also write the template yourself, you can get started on the template by simply adding:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgpanel&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; comb2&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;year&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;. tmplout="c:\temp.txt";&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once run, this writes the Graph Template Language code to the file temp.txt. &amp;nbsp;You can use this as the basis of creating a gridded graph with various overlays and such like - in fact all the latest graphing procedures use this GTL behind the scenes. &amp;nbsp;You can learn further at:&lt;BR /&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which has examples of pretty much any graphic you can think of.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 14:02:55 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-07-31T14:02:55Z</dc:date>
    <item>
      <title>Printing four graphs on to one page.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384267#M24762</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written a macro which creats graphs of distributions of variables. However, what happens is that each graph gets printed to one page. What I would like to do is merge the four grpahs on to one page so I can stick it into a word document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help at amending my code would be most welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dists;

%do year = 2011 %to 2015;

********Employee Pay at the individual level vs survey equiv*****************;
data temp&amp;amp;year.;
set combined_sample_&amp;amp;year._7(keep = year pay spay);
array temp{*} pay spay;
do i = 1 to dim(temp);
	temp(i) = round(temp(i),500);
end;
run; 

proc summary data = temp&amp;amp;year. nway;
class year spay;
var spay;
output n= out = comb1a&amp;amp;year.;
run;
proc summary data = temp&amp;amp;year. nway;
class year spay;
var pay;
output n= out = comb1b&amp;amp;year.;
run;
data comb2&amp;amp;year.;
merge comb1a&amp;amp;year.
		comb1b&amp;amp;year.(rename = (pay = spay_freq_ = regfreq));
by year spay;
run;

data comb2&amp;amp;year.;
set comb2&amp;amp;year.;
if spay= 0 then delete;run;

proc sgpanel data = comb2&amp;amp;year.;
panelby year;
vbar spay/ response = regfreq stat = percent legendlabel = "Register sample";
vbar spay/ response = _freq_ stat = percent legendlabel = "Survey sample" barwidth=0.5 transparency=0.6;
colaxis fitpolicy = rotatethin;
title "Distributions of Employee Income by Individual - Admin vs Survey, matched sample &amp;amp;year.";
run;
proc corr data= temp&amp;amp;year.; var pay spay;run;

%end;
%mend;
%dists;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384267#M24762</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-07-31T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Printing four graphs on to one page.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384269#M24763</link>
      <description>&lt;P&gt;Look at the ODS LAYOUT&amp;nbsp;GRIDDED command.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384269#M24763</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-31T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Printing four graphs on to one page.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384273#M24764</link>
      <description>&lt;P&gt;You could also write the template yourself, you can get started on the template by simply adding:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgpanel&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; comb2&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;year&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;. tmplout="c:\temp.txt";&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once run, this writes the Graph Template Language code to the file temp.txt. &amp;nbsp;You can use this as the basis of creating a gridded graph with various overlays and such like - in fact all the latest graphing procedures use this GTL behind the scenes. &amp;nbsp;You can learn further at:&lt;BR /&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which has examples of pretty much any graphic you can think of.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Printing-four-graphs-on-to-one-page/m-p/384273#M24764</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-31T14:02:55Z</dc:date>
    </item>
  </channel>
</rss>

