<?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: Adjusting column width when using Proc Tabulate in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253824#M15334</link>
    <description>&lt;P&gt;Well I don't generally use tabulate anymore. &amp;nbsp;I would put the results out to a dataset, with an out=, then proc report it. &amp;nbsp;But looking at the code you give, inline style attribution has to be escaped e.g.:&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;/P&gt;
&lt;P&gt;title 'This title ^s={font-size=12} is big';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ^ in this case is used as an escape character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2016 14:41:34 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-03-02T14:41:34Z</dc:date>
    <item>
      <title>Adjusting column width when using Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253802#M15332</link>
      <description>&lt;P&gt;I&amp;nbsp;am using Proc Tabulate with ODS PDF and one table created spans more than one page. &amp;nbsp;On the second page, the column widths adjust to fit which makes&amp;nbsp;the table look unslightly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using the cellwidth style attribute to fix the column size but it isn't working although code runs with no errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help? &amp;nbsp;Code below. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data=_tmp_country_t missing;&lt;BR /&gt; class hodo1 country year order;&lt;BR /&gt; var total;&lt;BR /&gt; format hodo1 $highdom.;&lt;BR /&gt; format order $orderout.;&lt;BR /&gt; table hodo1='' * [style= [cellwidth=7cm]] * country='', order ='' * year='' * total='' * sum='' * format=7. / misstext='0';&lt;BR /&gt; run;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 13:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253802#M15332</guid>
      <dc:creator>kimdukes77</dc:creator>
      <dc:date>2016-03-02T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting column width when using Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253824#M15334</link>
      <description>&lt;P&gt;Well I don't generally use tabulate anymore. &amp;nbsp;I would put the results out to a dataset, with an out=, then proc report it. &amp;nbsp;But looking at the code you give, inline style attribution has to be escaped e.g.:&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;/P&gt;
&lt;P&gt;title 'This title ^s={font-size=12} is big';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ^ in this case is used as an escape character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253824#M15334</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-02T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting column width when using Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253854#M15335</link>
      <description>&lt;P&gt;Are you trying to set the width of the 1)Row header variables (hodo country), or&amp;nbsp;2) the column header variables (order year) or 3)&amp;nbsp;statistics?&lt;/P&gt;
&lt;P&gt;Each level of nesting would need to be addressed. With Class variables usually the better approach is on&amp;nbsp;a CLASSLEV statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Classlev hodo1 /style= [width=7cm] ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set for each variable as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need uniform column headings set them but watch for interactions due to NESTING.&lt;/P&gt;
&lt;P&gt;Using ORDER * YEAR a specified width for ORDER would have to be large enough to handle all of the Years plus padding and such. Specifying a width for Year or the SUM statistic might be in order for uniformity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/253854#M15335</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-02T16:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting column width when using Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/254035#M15338</link>
      <description>&lt;P&gt;You can change the following system option to make your PDF size as big as you can hold all this tabulate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options papersize=(10in 20in);



proc tabulate data=sashelp.class;
class sex age;
var weight;
tables sex*age,weight*(mean std);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2016 02:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/254035#M15338</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-03T02:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting column width when using Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/254089#M15343</link>
      <description>&lt;P&gt;Works a treat!&amp;nbsp; Was trying to adjust the row variable headers.&amp;nbsp; Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 08:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adjusting-column-width-when-using-Proc-Tabulate/m-p/254089#M15343</guid>
      <dc:creator>kimdukes77</dc:creator>
      <dc:date>2016-03-03T08:43:16Z</dc:date>
    </item>
  </channel>
</rss>

