<?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: (in Results window) specifying column width for proc tabulate in SAS Studio or LSAF in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772197#M81072</link>
    <description>&lt;P&gt;ballardw, thank you for your comment.&lt;BR /&gt;It works in SAS Studio.&lt;BR /&gt;I think this will also nice in LSAF.&lt;BR /&gt;I add the picture of Results window after your code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="answer.jpg" style="width: 946px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64372i8BDC7CFBE948754B/image-size/large?v=v2&amp;amp;px=999" role="button" title="answer.jpg" alt="answer.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 15:13:51 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2021-10-05T15:13:51Z</dc:date>
    <item>
      <title>(in Results window) specifying column width for proc tabulate in SAS Studio or LSAF</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772146#M81070</link>
      <description>&lt;P&gt;I am working with LSAF at my company. When do proc tabulate in LSAF, We get results in the Results window, and I'm looking for a way to widen the width of the border table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If the output is html / rtf / pdf, there is a way for it that it can be controlled by "cellwidth", but in the case of Results window, it was unknown, so let me ask you a question.&lt;BR /&gt;information source of control width when pdf / html:&lt;BR /&gt;&lt;A href="https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba259.html" target="_self"&gt;https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba259.html&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/specifying-column-width-for-proc-tabulate/td-p/101882" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/specifying-column-width-for-proc-tabulate/td-p/101882&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba185.html
*/
PROC FORMAT;
  VALUE $genderf
        '1' = '男'
        '2' = '女'
;
  VALUE ynf
        1 = 'はい'
        2 = 'いいえ'
;
RUN;

DATA sample;
  INPUT group $ gender $ a1 @@;
  FORMAT gender genderf. a1 ynf.;
CARDS;
A  1 2   A 1 1
A  1 1   A 1 1
A  2 2   A 2 1
B  1 1   B 2 2
B  2 1   B 1 2
;
RUN;

PROC TABULATE DATA=sample;
  CLASS group gender a1;
  TABLES (group*(gender ALL)) ALL,a1*PCTN
  / MISSTEXT='0' PRINTMISS;
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output of above code in SAS Studio&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabulate_sas_studio.png" style="width: 840px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64367i3BDD78134411430B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabulate_sas_studio.png" alt="tabulate_sas_studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please tell me if there's a way for control column width (widening).Thank you for reading.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772146#M81070</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2021-10-05T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: (in Results window) specifying column width for proc tabulate in SAS Studio or LSAF</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772176#M81071</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/74767"&gt;@t_ar_taat&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am working with LSAF at my company. When do proc tabulate in LSAF, We get results in the Results window, and I'm looking for a way to widen the width of the border table.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If the output is html / rtf / pdf, there is a way for it that it can be controlled by "cellwidth", but in the case of Results window, it was unknown, so let me ask you a question.&lt;BR /&gt;information source of control width when pdf / html:&lt;BR /&gt;&lt;A href="https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba259.html" target="_self"&gt;https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba259.html&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/specifying-column-width-for-proc-tabulate/td-p/101882" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Procedures/specifying-column-width-for-proc-tabulate/td-p/101882&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
https://www.sas.com/offices/asiapacific/japan/service/technical/faq/list/body/ba185.html
*/
PROC FORMAT;
  VALUE $genderf
        '1' = '男'
        '2' = '女'
;
  VALUE ynf
        1 = 'はい'
        2 = 'いいえ'
;
RUN;

DATA sample;
  INPUT group $ gender $ a1 @@;
  FORMAT gender genderf. a1 ynf.;
CARDS;
A  1 2   A 1 1
A  1 1   A 1 1
A  2 2   A 2 1
B  1 1   B 2 2
B  2 1   B 1 2
;
RUN;

PROC TABULATE DATA=sample;
  CLASS group gender a1;
  TABLES (group*(gender ALL)) ALL,a1*PCTN
  / MISSTEXT='0' PRINTMISS;
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output of above code in SAS Studio&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabulate_sas_studio.png" style="width: 840px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64367i3BDD78134411430B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabulate_sas_studio.png" alt="tabulate_sas_studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please tell me if there's a way for control column width (widening).Thank you for reading.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You say you are trying to " widen the width of the border table." I don't know what that means as there is no "border" or "border table".&lt;/P&gt;
&lt;P&gt;You can control cell width of column and row heading cells. See if this gives you a start:&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE DATA=sample;
  CLASS group gender a1;
  classlev a1 group/style=[cellwidth=5cm];
  TABLES (group*(gender ALL)) ALL,
        a1*PCTN
  / MISSTEXT='0' PRINTMISS;
;
RUN;&lt;/PRE&gt;
&lt;P&gt;CLASSLEV sets properties for CLASS variables. In this case I make two of the class variables appear in wider cells.&lt;/P&gt;
&lt;P&gt;If this doesn't work in LSAF then contact SAS Technical support.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 14:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772176#M81071</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-05T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: (in Results window) specifying column width for proc tabulate in SAS Studio or LSAF</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772197#M81072</link>
      <description>&lt;P&gt;ballardw, thank you for your comment.&lt;BR /&gt;It works in SAS Studio.&lt;BR /&gt;I think this will also nice in LSAF.&lt;BR /&gt;I add the picture of Results window after your code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="answer.jpg" style="width: 946px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64372i8BDC7CFBE948754B/image-size/large?v=v2&amp;amp;px=999" role="button" title="answer.jpg" alt="answer.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/in-Results-window-specifying-column-width-for-proc-tabulate-in/m-p/772197#M81072</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2021-10-05T15:13:51Z</dc:date>
    </item>
  </channel>
</rss>

