<?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 Proc print with excel add in and control width of excel columns. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533092#M73808</link>
    <description>&lt;P&gt;I use an excel SAS add-in that let's me run SAS code.&amp;nbsp; I develop the code in SAS Studio.&amp;nbsp; The resulting dataset in the excel worksheet has some very wide column widths.&amp;nbsp; &amp;nbsp;The wide columns are for variables with lengths of 12,000 for free form entry.&amp;nbsp; I do not want to truncate any of the text.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there control the column width in excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data=mydata;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Feb 2019 22:07:43 GMT</pubDate>
    <dc:creator>yelkenli</dc:creator>
    <dc:date>2019-02-05T22:07:43Z</dc:date>
    <item>
      <title>Proc print with excel add in and control width of excel columns.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533092#M73808</link>
      <description>&lt;P&gt;I use an excel SAS add-in that let's me run SAS code.&amp;nbsp; I develop the code in SAS Studio.&amp;nbsp; The resulting dataset in the excel worksheet has some very wide column widths.&amp;nbsp; &amp;nbsp;The wide columns are for variables with lengths of 12,000 for free form entry.&amp;nbsp; I do not want to truncate any of the text.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there control the column width in excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data=mydata;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533092#M73808</guid>
      <dc:creator>yelkenli</dc:creator>
      <dc:date>2019-02-05T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print with excel add in and control width of excel columns.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533097#M73810</link>
      <description>&lt;P&gt;To set all of the cells to the same width something like:&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   style(data)={cellwidth=1in}
;
run;&lt;/PRE&gt;
&lt;P&gt;If you want to set specific variables widths then you will need to add VAR statements to list the variables and set the style for the specific variable to a desired width such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   ;
   var name sex age;
   var height /style={cellwidth=2in};
   var weight;
run;&lt;/PRE&gt;
&lt;P&gt;Which leaves SAS defaults for the variables without the style override and sets that one variable to a width of 2 inches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything with 12,000 characters is likely going to result in &lt;STRONG&gt;very tall&lt;/STRONG&gt; cells if you reduce the width to 1 or two inches. You will have to investigate the Excel formats to turn off wordwrap, which I can't help with if that happens.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533097#M73810</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-05T22:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print with excel add in and control width of excel columns.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533618#M73834</link>
      <description>&lt;P&gt;ballardw:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp; the SAS excel add-in tool appears to not use all of the SAS coding controls, as this did not work (similar result as my other forum thread).&amp;nbsp; If anyone uses the excel add-in, please chime in.&amp;nbsp; Any suggestions are appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 15:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-with-excel-add-in-and-control-width-of-excel-columns/m-p/533618#M73834</guid>
      <dc:creator>yelkenli</dc:creator>
      <dc:date>2019-02-07T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

