<?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: How to change the column width with ods excel sas 9.4 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317444#M17465</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you guess right. What if I have&amp;nbsp;&lt;SPAN&gt;more than one table on a worksheet, and I dont want the same column widths for all the tables on my worksheet. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 21:35:51 GMT</pubDate>
    <dc:creator>zhangda</dc:creator>
    <dc:date>2016-12-07T21:35:51Z</dc:date>
    <item>
      <title>How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317142#M17459</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am coding ods excel file with sas 9.4, would you please guide me how to change the column width? Please see the code below. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS excel file ="/opt/sas/Report120616_38679.xlsx" ;&lt;/P&gt;&lt;P&gt;ods excel options( embedded_titles='on' embedded_footnotes='yes' sheet_name="Metrics " sheet_interval="none");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc report data=all &amp;nbsp;contents=" " nowd split='\'&lt;BR /&gt;/*style(report)={font_size=14pt cellpadding=4pt cellspacing=1 rules=none frame=void}*/&lt;BR /&gt;style(header)={color=black background=cornflowerblue fontweight=bold }&lt;BR /&gt;style(column)={just=center background=snow fontweight=bold };&lt;BR /&gt;title1 j=c color=black HEIGHT=14pt BOLD "All Products";&lt;BR /&gt;footnote1 j=c COLOR=BLACK BOLD "***Data as of &amp;amp;yesterday.***";&lt;BR /&gt;footnote2 j=c COLOR=BLACK BOLD "*** The date is from &amp;amp;cur_apr_b. to current***";&lt;BR /&gt;column _name_ year2016 year2015 Num_of_Variance mature2015 Num_of_Variance2 y2016 y2015 Variance ;&lt;/P&gt;&lt;P&gt;define _name_ / "Mets" style=[ fontstyle=Roman fontweight=bold font_size=2.2 cellwidth=0.5in just=center ];&lt;BR /&gt;define year2016/ "&amp;amp;Mar_Yr." style=[cellwidth=0.2in];&lt;BR /&gt;define year2015/ " &amp;amp;Mar_PreYr." style=[cellwidth=0.2in];&lt;BR /&gt;define Num_of_Variance/ "# of Variance" style=[foreground=negfmt.];&lt;BR /&gt;define m2015/ "Ma &amp;amp;Mar_PreYr." style=[cellwidth=0.2in];&lt;BR /&gt;define Num_of_Variance2/ "# of Variance" style=[foreground=negfmt.];&lt;BR /&gt;define y2016/ "YTD16" style=[foreground=negfmt.];&lt;BR /&gt;define y2015/ " YTD15" style=[foreground=negfmt.];&lt;BR /&gt;define Variance/ "# of Variance" style=[foreground=negfmt.];&lt;/P&gt;&lt;P&gt;compute _name_ ;&lt;BR /&gt;if _name_= 'Avg ' then call define(_row_,'style','style={background=gainsboro}');&lt;BR /&gt;if _name_= 'Avg App' then call define(_row_,'style','style={background=gainsboro}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;%macro comp(arg);&lt;BR /&gt;compute &amp;amp;arg;&lt;BR /&gt;If _name_='App' then call define(_col_,'format','comma20.0');&lt;BR /&gt;If _name_='CAR' then call define(_col_,'style',"style=[tagattr='format:0.0%']");&lt;BR /&gt;if _name_= 'JAR' then call define(_col_,'style',"style=[tagattr='format:0.0%']");&lt;BR /&gt;if _name_= 'R % ' then call define(_col_,'style',"style=[tagattr='format:0.0%']");&lt;BR /&gt;if _name_= 'Avg ' then call define(_col_,'format','comma8.0');&lt;BR /&gt;if _name_= 'AvgA' then call define(_col_,'format','comma8.0');&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;%mend common_lines;&lt;/P&gt;&lt;P&gt;%comp(year2015);&lt;BR /&gt;%comp(year2016);&lt;BR /&gt;%comp( Num_of_Variance);&lt;BR /&gt;%comp(mature2015);&lt;BR /&gt;%comp( Num_of_Variance2);&lt;BR /&gt;%comp( y2016);&lt;BR /&gt;%comp(y2015);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods EXCEL close;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 21:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317142#M17459</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-06T21:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317155#M17460</link>
      <description>&lt;P&gt;Have you tried ABSOLUTE_COLUMN_WIDTH?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_help.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_help.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317155#M17460</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-06T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317390#M17461</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much for your suggestion, but what if I have a couple of worksheet for one excel workbook, and for each worksheet, the tables have a couple of columns whose cellwidth varies. Can the&amp;nbsp;absolute_column_width be customized for the tabels of each worksheet? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317390#M17461</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-07T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317402#M17462</link>
      <description>&lt;P&gt;Yes, you can specify an option statement before each PROC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods excel option (...) ;&lt;/P&gt;
&lt;P&gt;proc tabulate code....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel option(...);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report code(....);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excek close;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll move this to the reporting forum to see if you get a better answer than mine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 18:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317402#M17462</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-07T18:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317424#M17463</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can use the ABSOLUTE_COLUMN_WIDTH option to change the column widths on each separate worksheet but (to be absolutely obvious), because there is only one set of columns on a worksheet, if you have more than one table on a worksheet then all the tables must have the same column widths.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 19:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317424#M17463</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-12-07T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317444#M17465</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you guess right. What if I have&amp;nbsp;&lt;SPAN&gt;more than one table on a worksheet, and I dont want the same column widths for all the tables on my worksheet. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 21:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317444#M17465</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-07T21:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317448#M17466</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14680"&gt;@zhangda&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you guess right. What if I have&amp;nbsp;&lt;SPAN&gt;more than one table on a worksheet, and I dont want the same column widths for all the tables on my worksheet. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One option only: No spreadsheet. Move to HTML, PDF or RTF output. I have not seen any spreadsheets that allows separate column widths in different locations on a single sheet. The closest is merged cells but the left and right boundaries will still align with other cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So decide which is more important: Different column widths or Spreadsheet output.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 21:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317448#M17466</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-07T21:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317451#M17467</link>
      <description>&lt;P&gt;The limitation here is Excel, not SAS.&amp;nbsp;Columns have a simgle width.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317451#M17467</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-07T22:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317455#M17468</link>
      <description>&lt;P&gt;Is there any options that could merge the two columns width into one column ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 23:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317455#M17468</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-07T23:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317470#M17469</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;. When you choose Excel as your reporting format then you accept its limitations, and one of its limitations is that you only get one set of columns per worksheet. ODS doesn't have any magic bullet to change that. If you must use Excel then accept it. If you must have multiple tables with different column widths per "page," then use a different report format.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317470#M17469</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-12-08T01:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317472#M17470</link>
      <description>&lt;P&gt;Merged cells are good for me, do you have any code samples? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317472#M17470</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-08T01:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317474#M17471</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14680"&gt;@zhangda&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Merged cells are good for me, do you have any code samples? Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;None that I'm aware of to do it automatically &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It has to happen manually. If you're mostly interested in appearance, consider using HTML and then saving the file to an Excel format afterwards.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 02:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317474#M17471</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-08T02:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317609#M17473</link>
      <description>Hi Tim,&lt;BR /&gt;Do you have any idea shrinking the tables of one worksheet into one page to print out for ods excel? Thanks!</description>
      <pubDate>Thu, 08 Dec 2016 14:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317609#M17473</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-08T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317614#M17474</link>
      <description>&lt;P&gt;Excel will do that for you. In Excel 2013, choose &lt;STRONG&gt;Print&lt;/STRONG&gt;, then select &lt;STRONG&gt;Fit Sheet on One Page.&amp;nbsp;&lt;/STRONG&gt;Here's a picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6279i33F83F1646DD0100/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="excel.jpg" title="excel.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 14:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317614#M17474</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-12-08T14:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the column width with ods excel sas 9.4</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317616#M17475</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for it! I am kind of all-with-sas-code now, actually there is easier way without having sas coding involved.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 14:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-the-column-width-with-ods-excel-sas-9-4/m-p/317616#M17475</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-12-08T14:46:32Z</dc:date>
    </item>
  </channel>
</rss>

