<?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 Automatically Resizing VIEWTABLE Columns? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Automatically-Resizing-VIEWTABLE-Columns/m-p/507838#M6436</link>
    <description>&lt;P&gt;Is there any&amp;nbsp;automatic way to resize columns in VIEWTABLE? Here's one sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename LIPSUM temp;
proc http method="get" out=LIPSUM
url="https://en.wikipedia.org/wiki/Lorem_ipsum";
run;
data LIPSUM;
infile LIPSUM length=LENG lrecl=32767;
input LINE $varying32767. LENG;
LINE=strip(LINE);
if count(LINE,"Lorem ipsum dolor sit amet,");
LINE=tranwrd(LINE,"&amp;lt;p&amp;gt;","");
LINE=tranwrd(LINE,"&amp;lt;i&amp;gt;","");
LINE=tranwrd(LINE,"&amp;lt;/i&amp;gt;","");
LINE=strip(LINE);
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code may generate one dummy sentence that is too long to be displayed with no line break. As expected, here's the default view by VIEWTABLE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24417i0CC7EE98B146AA41/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There would be no problem technically as long as the data contain the sentences&amp;nbsp;appropriately, but I still wonder&amp;nbsp;if it's possible to&amp;nbsp;automatically fit the column (or assign a specific width manually, or disable the automatic text wrap) as a matter of convenience. Hopefully, I want to force VIEWTABLE to display the sentence in one line and enable the horizontal scrollbar below, but any reasonable alternative would be also welcome. Dragging columns to expand every time is just pesky. By the way, I tried&amp;nbsp;formatting (format LINE $100.) already, but it didn't adjust the column width.&amp;nbsp;Thanks beforehand.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 17:25:59 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2018-10-26T17:25:59Z</dc:date>
    <item>
      <title>Automatically Resizing VIEWTABLE Columns?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Automatically-Resizing-VIEWTABLE-Columns/m-p/507838#M6436</link>
      <description>&lt;P&gt;Is there any&amp;nbsp;automatic way to resize columns in VIEWTABLE? Here's one sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename LIPSUM temp;
proc http method="get" out=LIPSUM
url="https://en.wikipedia.org/wiki/Lorem_ipsum";
run;
data LIPSUM;
infile LIPSUM length=LENG lrecl=32767;
input LINE $varying32767. LENG;
LINE=strip(LINE);
if count(LINE,"Lorem ipsum dolor sit amet,");
LINE=tranwrd(LINE,"&amp;lt;p&amp;gt;","");
LINE=tranwrd(LINE,"&amp;lt;i&amp;gt;","");
LINE=tranwrd(LINE,"&amp;lt;/i&amp;gt;","");
LINE=strip(LINE);
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code may generate one dummy sentence that is too long to be displayed with no line break. As expected, here's the default view by VIEWTABLE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24417i0CC7EE98B146AA41/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There would be no problem technically as long as the data contain the sentences&amp;nbsp;appropriately, but I still wonder&amp;nbsp;if it's possible to&amp;nbsp;automatically fit the column (or assign a specific width manually, or disable the automatic text wrap) as a matter of convenience. Hopefully, I want to force VIEWTABLE to display the sentence in one line and enable the horizontal scrollbar below, but any reasonable alternative would be also welcome. Dragging columns to expand every time is just pesky. By the way, I tried&amp;nbsp;formatting (format LINE $100.) already, but it didn't adjust the column width.&amp;nbsp;Thanks beforehand.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 17:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Automatically-Resizing-VIEWTABLE-Columns/m-p/507838#M6436</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2018-10-26T17:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Resizing VIEWTABLE Columns?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Automatically-Resizing-VIEWTABLE-Columns/m-p/507851#M6438</link>
      <description>&lt;P&gt;This board says the easiest way to turn off line-wrapping is to use ODS output to HTML:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;A href="https://groups.google.com/forum/#!topic/comp.soft-sys.sas/_tEMBjeUj68" target="_self"&gt;Google Forum about SAS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then this SAS Note says, to do that in HTML, you would need to use a template code they provide:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;A href="http://support.sas.com/kb/23/373.html" target="_self"&gt;Usage Note 23373&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 18:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Automatically-Resizing-VIEWTABLE-Columns/m-p/507851#M6438</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-10-26T18:09:22Z</dc:date>
    </item>
  </channel>
</rss>

