<?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: Export Freq table and SGPLOT graph onto same PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392653#M277766</link>
    <description>&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the ODS LAYOUT.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 19:51:28 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-09-01T19:51:28Z</dc:date>
    <item>
      <title>Export Freq table and SGPLOT graph onto same PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392641#M277765</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to export a frequency table, and histogram onto a same PDF page?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I use to produce distinct pdf files.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ds pdf file="&amp;amp;drop.&amp;amp;title._&amp;amp;dtfrom._to_&amp;amp;dtto..PDF";
ods pdf StartPage=Never; 
ods noproctitle; 
TITLE1 "Ratio of Voluntary Account Closures";
proc FREQ data=a_pdf ;
TABLES Voluntary_Closure_Reason /norow nocol ; 
RUN; 
ods pdf close; TITLE1 ; 

ods pdf file='file.pdf';
PROC SGPLOT DATA=b;
VBAR Voluntary_Closure_Reason /
RESPONSE = COUNT;
TITLE 'Status Additions';
RUN; 
ods pdf close; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392641#M277765</guid>
      <dc:creator>brulard</dc:creator>
      <dc:date>2017-09-01T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export Freq table and SGPLOT graph onto same PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392653#M277766</link>
      <description>&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the ODS LAYOUT.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392653#M277766</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-09-01T19:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export Freq table and SGPLOT graph onto same PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392661#M277767</link>
      <description>&lt;P&gt;A lot of things will go into the determination of pagination besides the startpage option. If the table is long then there may not be any room for the graph. Or the size options for you graph may want more space and not fit with a small table.&lt;/P&gt;
&lt;P&gt;This works for me as an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods pdf file="d:\test.PDF" style=meadow;
ods pdf StartPage=Never; 
ods noproctitle; 

TITLE1 "Ratio of Voluntary Account Closures";
proc FREQ data=sashelp.class (obs=5) ;
   TABLES name /norow nocol ; 
RUN;
 
PROC SGPLOT DATA=sashelp.class (obs=5);
   VBAR name /
   RESPONSE = Height;
   TITLE 'Status Additions';
RUN; title;
ods pdf close; &lt;/PRE&gt;
&lt;P&gt;Note that if you ever close the PDF with the ODS PDF Close anything that follows will&amp;nbsp;likely not&amp;nbsp;be in the same document much less page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used style meadow as it uses a smaller font than the default PDF wants and makes the table smaller.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 20:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/392661#M277767</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-01T20:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export Freq table and SGPLOT graph onto same PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/393876#M277768</link>
      <description>Appreciate the explanation.</description>
      <pubDate>Thu, 07 Sep 2017 14:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Freq-table-and-SGPLOT-graph-onto-same-PDF/m-p/393876#M277768</guid>
      <dc:creator>brulard</dc:creator>
      <dc:date>2017-09-07T14:03:50Z</dc:date>
    </item>
  </channel>
</rss>

