<?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: Why does viewtable make the column so narrow? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682239#M206505</link>
    <description>The viewtable layout engine (internal) sets the column width wider for a format that says its data render is 9 characters wide.&lt;BR /&gt;&lt;BR /&gt;On my system the 7. format set aside is 47 pixels and 9. is 59 pixels.  The minimum pixels need to wholly display the sample data is 49 pixels.  I presume the M in the format cause the data render, with default font settings, to require a final graphic (screen) rendering wider than the estimate for space needed.  So you get ****** instead.</description>
    <pubDate>Tue, 08 Sep 2020 13:06:45 GMT</pubDate>
    <dc:creator>RichardDeVen</dc:creator>
    <dc:date>2020-09-08T13:06:45Z</dc:date>
    <item>
      <title>Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682210#M206492</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data months;
    do i=1 to 4;
	month=intnx('month',today(),i,'b');
	output;
	end;
	format month yymm7.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is what I see in viewtable in SAS 9.4M5 Windows 10. The column for MONTH is too narrow. Yes, I can manually expand the column to see the values of the data, but this gets tiresome after having to do this all the time (and my real data has several month columns). So, how do I fix this programmatically so that viewtable will make the column wide enough?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 195px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49092iEB1A7DD996CF8298/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 11:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682210#M206492</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-08T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682214#M206496</link>
      <description>&lt;P&gt;Did you try using a different font?&amp;nbsp; Not sure what setting impacts ViewTable, but there are font setting options in Display Manager.&amp;nbsp; Tools -&amp;gt; Options -&amp;gt; Font...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 11:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682214#M206496</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-08T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682215#M206497</link>
      <description>Try expand the width of format &lt;BR /&gt;	format month yymm9.;&lt;BR /&gt;Or use other format like yymmn7. ;</description>
      <pubDate>Tue, 08 Sep 2020 11:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682215#M206497</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-08T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682216#M206498</link>
      <description>format month yymm12.;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Sep 2020 11:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682216#M206498</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-08T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682223#M206501</link>
      <description>&lt;P&gt;Any explanation why viewtable works with YYMM9. but not YYMM7. ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 12:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682223#M206501</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-08T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682239#M206505</link>
      <description>The viewtable layout engine (internal) sets the column width wider for a format that says its data render is 9 characters wide.&lt;BR /&gt;&lt;BR /&gt;On my system the 7. format set aside is 47 pixels and 9. is 59 pixels.  The minimum pixels need to wholly display the sample data is 49 pixels.  I presume the M in the format cause the data render, with default font settings, to require a final graphic (screen) rendering wider than the estimate for space needed.  So you get ****** instead.</description>
      <pubDate>Tue, 08 Sep 2020 13:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682239#M206505</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-09-08T13:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does viewtable make the column so narrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682567#M206607</link>
      <description>I don't know why . If I run your code under SAS9.2 . The result is good .&lt;BR /&gt;Anytime if you find ***** in viewtable , that means the width of format is not enough .</description>
      <pubDate>Wed, 09 Sep 2020 11:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-viewtable-make-the-column-so-narrow/m-p/682567#M206607</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-09T11:18:45Z</dc:date>
    </item>
  </channel>
</rss>

