<?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 ODS Excel controlling column width in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500015#M21825</link>
    <description>&lt;P&gt;I came across two issues when using ODS EXCEL with PROC ODSTEXT&lt;/P&gt;
&lt;P&gt;1) why absolute_column_width doesn't apply in the below cases.&lt;/P&gt;
&lt;P&gt;2) Long text in Proc odstext is not displayed&amp;nbsp; properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; When I tested text with length ~143 is displayed without warping, but longer text is being hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="test1.xlsx" 
options(absolute_column_width="100" ) style=Excel;
ods text="SAS was developed at North Carolina State University";
ods text="Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics.";
ods excel close;


ods excel file="test2.xlsx" 
options(absolute_column_width="100" ) style=Excel;
proc odstext;
p "SAS was developed at North Carolina State University";
p "Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics.";
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23647i63F867A0C0A3A000/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 19:35:40 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-09-28T19:35:40Z</dc:date>
    <item>
      <title>ODS Excel controlling column width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500015#M21825</link>
      <description>&lt;P&gt;I came across two issues when using ODS EXCEL with PROC ODSTEXT&lt;/P&gt;
&lt;P&gt;1) why absolute_column_width doesn't apply in the below cases.&lt;/P&gt;
&lt;P&gt;2) Long text in Proc odstext is not displayed&amp;nbsp; properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; When I tested text with length ~143 is displayed without warping, but longer text is being hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="test1.xlsx" 
options(absolute_column_width="100" ) style=Excel;
ods text="SAS was developed at North Carolina State University";
ods text="Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics.";
ods excel close;


ods excel file="test2.xlsx" 
options(absolute_column_width="100" ) style=Excel;
proc odstext;
p "SAS was developed at North Carolina State University";
p "Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics.";
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23647i63F867A0C0A3A000/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 19:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500015#M21825</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-09-28T19:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel controlling column width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500021#M21826</link>
      <description>&lt;P&gt;I don't know why this trick works, but it does.&amp;nbsp; Set width=1000% for the really long text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=/folders/myfolders/ODS Excel examples;

ods excel file="&amp;amp;path/test2.xlsx" style=Excel;

proc odstext;
	p "SAS was developed at North Carolina State University";
	p "Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics." 
		/ style={width=1000%};
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The screen shot below shows what test2.xlsx looks like for me.&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="Set width=1000% on really long text in PROC ODSTEXT to force it to display" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23648iE71C878D479DC5BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Width of 1000 percent trick for PROC ODSTEXT in ODS Excel destination.jpg" alt="Set width=1000% on really long text in PROC ODSTEXT to force it to display" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Set width=1000% on really long text in PROC ODSTEXT to force it to display&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 20:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500021#M21826</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2018-09-28T20:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel controlling column width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500358#M21830</link>
      <description>&lt;P&gt;This is weird, I will open SAS Technical Support track and see if they come up with something.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 13:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/500358#M21830</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-01T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel controlling column width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/501590#M21854</link>
      <description>&lt;P&gt;Using width and tagattr= (merge cells) can better control the the text flow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp;style={width=3in tagattr='mergeacross:5'}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="test2.xlsx"
style=Excel;
proc odstext;
p "SAS was developed at North Carolina State University";
p "Wikipedia: SAS (previously 'Statistical Analysis System') is a software suite developed by SAS Institute for advanced analytics, multivariate analyses, business intelligence, data management, and predictive analytics." / style={width=3in tagattr='mergeacross:5'};
run;
ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;The ABSOLUTE_COLUMN_WIDTH= option is for the columns within the table. The TEXT= option is simply floating text which is a good use of PROC ODSTEXT. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 16:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-controlling-column-width/m-p/501590#M21854</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-04T16:59:03Z</dc:date>
    </item>
  </channel>
</rss>

