<?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: Stacking Tables in ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237687#M14799</link>
    <description>&lt;P&gt;You can use absolute layout, but this means you have to know exactly the size of the region, that you are going to use, that will work with your data. If the region is too small, you will get a warning in the log, and region is not filled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code below shows how to use it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options nocenter;
ods pdf file="c:\temp\sample.pdf";
ods layout absolute;

%let tableHeight=6.63cm;

ods region x=0 y=0 width=8cm height=&amp;amp;tableHeight;

proc print data=sashelp.class
  style(table) = {width=100pct}
;
  where sex = "F";
run;

ods region x=0 y=&amp;amp;tableHeight width=8cm height=10cm;

proc print data=sashelp.class
  style(table) = {width=100pct}
;
  where sex = "M";
run;

ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 20:14:28 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2015-12-03T20:14:28Z</dc:date>
    <item>
      <title>Stacking Tables in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/236752#M14744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My company is having me convert some quartly reports that are currently being run by SQL into SAS stored processes. I found a macro on a differnet community board that shows how to "glue" or stack your proc report output on top of each other, so it appears as if it is a single table. The article is here&amp;nbsp;&lt;A href="http://www2.sas.com/proceedings/sugi31/089-31.pdf." target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/089-31.pdf.&lt;/A&gt; However, we need to use ods layout, which requires ods pdf, to get everything to fit on a single page. Does anyone know how to get this stacked table appearance using ods pdf?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess another question would be, can ods layout allow me to get the tables close enough together so that they appear as one single table?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really any help is wanted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 16:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/236752#M14744</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-11-30T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking Tables in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237623#M14790</link>
      <description>&lt;P&gt;You can use ODS LAYOUT to do what you want. You just set the ROW_GUTTER=0, this should give you what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find below a sample code, make sure all the output fits on one page.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options nocenter;

ods pdf file="c:\temp\sample.pdf" ;
ods layout gridded  columns=1 row_gutter=0;

ods region;
proc print data=sashelp.class;
  where sex = "F";
run;

ods region;
proc print data=sashelp.cars(obs=15);
  var make model type invoice Horsepower;
run;

ods region;
proc print data=sashelp.class;
  where sex = "M";
run;

ods layout end;
ods pdf close;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237623#M14790</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-12-03T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking Tables in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237626#M14791</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237626#M14791</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-12-03T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking Tables in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237627#M14792</link>
      <description>&lt;P&gt;This works but I will need to use and absolute layout. Will this not work with an absolute layout?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237627#M14792</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-12-03T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking Tables in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237687#M14799</link>
      <description>&lt;P&gt;You can use absolute layout, but this means you have to know exactly the size of the region, that you are going to use, that will work with your data. If the region is too small, you will get a warning in the log, and region is not filled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code below shows how to use it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options nocenter;
ods pdf file="c:\temp\sample.pdf";
ods layout absolute;

%let tableHeight=6.63cm;

ods region x=0 y=0 width=8cm height=&amp;amp;tableHeight;

proc print data=sashelp.class
  style(table) = {width=100pct}
;
  where sex = "F";
run;

ods region x=0 y=&amp;amp;tableHeight width=8cm height=10cm;

proc print data=sashelp.class
  style(table) = {width=100pct}
;
  where sex = "M";
run;

ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 20:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stacking-Tables-in-ODS-PDF/m-p/237687#M14799</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-12-03T20:14:28Z</dc:date>
    </item>
  </channel>
</rss>

