<?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 How to make table size same for different procedures in ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416110#M19905</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have different procedures in my ODS PDF. Its PDF with 5 pages and several procedures like proc report, proc print, proc tabulate and proc univariate. When we see output, it looks really scattered. Below is code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set sashelp.cars (obs=10);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;options papersize=(21in 15in) leftmargin=1.05in rightmargin=1.05in;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods escapechar = '~' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; noresults &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; noproctitle ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options symbolgen;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS LISTING CLOSE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf file="/sasdata/Shared/test.pdf" gtitle gfootnote;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf startpage=now;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc report data=cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ods pdf startpage=no;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc print data=cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem is the width of these 2 results in pdf differs.&amp;nbsp; While I do understand that these are 2 different procedures and would differ in&amp;nbsp; appearance when executed . still Is there a way we can make it aligned&amp;nbsp; at least in terms of width? see the screen below&lt;/P&gt;
&lt;P&gt;Any help is really appreciated&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Look at different width" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16848i4BFFCF0E1A5FE496/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Look at different width" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Look at different width&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Nov 2017 03:20:00 GMT</pubDate>
    <dc:creator>yashpande</dc:creator>
    <dc:date>2017-11-25T03:20:00Z</dc:date>
    <item>
      <title>How to make table size same for different procedures in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416110#M19905</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have different procedures in my ODS PDF. Its PDF with 5 pages and several procedures like proc report, proc print, proc tabulate and proc univariate. When we see output, it looks really scattered. Below is code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set sashelp.cars (obs=10);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;options papersize=(21in 15in) leftmargin=1.05in rightmargin=1.05in;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods escapechar = '~' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; noresults &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; noproctitle ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options symbolgen;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS LISTING CLOSE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf file="/sasdata/Shared/test.pdf" gtitle gfootnote;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf startpage=now;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc report data=cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ods pdf startpage=no;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc print data=cars;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem is the width of these 2 results in pdf differs.&amp;nbsp; While I do understand that these are 2 different procedures and would differ in&amp;nbsp; appearance when executed . still Is there a way we can make it aligned&amp;nbsp; at least in terms of width? see the screen below&lt;/P&gt;
&lt;P&gt;Any help is really appreciated&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Look at different width" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16848i4BFFCF0E1A5FE496/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Look at different width" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Look at different width&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 03:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416110#M19905</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2017-11-25T03:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make table size same for different procedures in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416112#M19906</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; For PRINT, REPORT and TABULATE, you can make width=100% or width=8in as a style= override. But you can only change that in UNIVARIATE with a TABLE template change. Since you did not post any UNIVARIATE code, I used SASHELP.CARS, and SASHELP.HEART for this example, below.&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options papersize=(21in 15in) leftmargin=1.05in rightmargin=1.05in;
ods escapechar = '~';
ods noproctitle ;

ods _all_ close;
ods pdf file="c:\temp\test.pdf" uniform;
ods pdf startpage=now;
proc report data=sashelp.cars(obs=10)
     style(report)={width=18in};
run;

ods pdf startpage=no;
proc print data=sashelp.heart(obs=10) noobs
     style(table)={width=18in};
run;

proc tabulate data=sashelp.cars;
  class make origin;
  var msrp mpg_city mpg_highway cylinders;
  table origin,
        msrp*(mean max) mpg_city*(mean max) mpg_highway*(mean max)
		cylinders*(mean max)
     /style={width=18in};
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Nov 2017 03:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416112#M19906</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-25T03:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to make table size same for different procedures in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416113#M19907</link>
      <description>&lt;P&gt;I got them to align by adding style=,&amp;nbsp;noobs, and&amp;nbsp;label options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cars;
set sashelp.cars (obs=10);
run;
options papersize=(21in 15in) leftmargin=1.05in rightmargin=1.05in;
ods escapechar = '~' 
 noresults 
 noproctitle ;

ODS LISTING CLOSE;
ods _all_ close;
ods pdf file="&amp;amp;sasforum.\reports\test.pdf" gtitle gfootnote;
ods pdf startpage=now;
proc report data=cars style(report)={outputwidth=17in};
run;

ods pdf startpage=no;
proc print data=cars noobs label style(table)={outputwidth=17in};
run;
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Nov 2017 04:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-make-table-size-same-for-different-procedures-in-ODS-PDF/m-p/416113#M19907</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-25T04:15:22Z</dc:date>
    </item>
  </channel>
</rss>

