<?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 SAS ODS Excel - Column width issue when multiple outputs on single sheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Column-width-issue-when-multiple-outputs-on-single/m-p/454942#M20850</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using ODS excel for printing multiple proc reports on single excel sheet. It appears that first table is deciding column width for all the tables. I'd like to&amp;nbsp;customize column width for each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="C:\Users\XYZ\Desktop\try.xls" options(embedded_titles = 'yes' row_heights='20,35' width_points='1.5' sheet_interval = 'none' sheet_name = 'Class ');&lt;/P&gt;&lt;P&gt;title j=c bcolor=lightblue "Class - Age gender";&lt;/P&gt;&lt;P&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name age sex;&lt;BR /&gt;define name / display style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define age / display style(column)=[cellwidth =500] "age";&lt;BR /&gt;define sex / display style(column)=[cellwidth =200] "Sex";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title j=c bcolor=lightblue "Class -Height Weight"; ;&lt;BR /&gt;&lt;BR /&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name height weight;&lt;BR /&gt;define name / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define height / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Height";&lt;BR /&gt;define weight / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Weight";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, though I&amp;nbsp;specified width of 200 for variable Height on second table but its taking width 500 from Age variable on first table.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 21:15:07 GMT</pubDate>
    <dc:creator>Neeta</dc:creator>
    <dc:date>2018-04-17T21:15:07Z</dc:date>
    <item>
      <title>SAS ODS Excel - Column width issue when multiple outputs on single sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Column-width-issue-when-multiple-outputs-on-single/m-p/454942#M20850</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using ODS excel for printing multiple proc reports on single excel sheet. It appears that first table is deciding column width for all the tables. I'd like to&amp;nbsp;customize column width for each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="C:\Users\XYZ\Desktop\try.xls" options(embedded_titles = 'yes' row_heights='20,35' width_points='1.5' sheet_interval = 'none' sheet_name = 'Class ');&lt;/P&gt;&lt;P&gt;title j=c bcolor=lightblue "Class - Age gender";&lt;/P&gt;&lt;P&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name age sex;&lt;BR /&gt;define name / display style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define age / display style(column)=[cellwidth =500] "age";&lt;BR /&gt;define sex / display style(column)=[cellwidth =200] "Sex";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title j=c bcolor=lightblue "Class -Height Weight"; ;&lt;BR /&gt;&lt;BR /&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name height weight;&lt;BR /&gt;define name / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define height / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Height";&lt;BR /&gt;define weight / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Weight";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, though I&amp;nbsp;specified width of 200 for variable Height on second table but its taking width 500 from Age variable on first table.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 21:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Column-width-issue-when-multiple-outputs-on-single/m-p/454942#M20850</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2018-04-17T21:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS Excel - Column width issue when multiple outputs on single sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Column-width-issue-when-multiple-outputs-on-single/m-p/454948#M20851</link>
      <description>&lt;P&gt;That's sadly a limitation of Excel, a single column cannot have different widths so if happens to align it will take the widths from the table at the top.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The usual way to 'workaround' this issue is to merge/collapse cells, but TAGSETS does not support that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68266"&gt;@Neeta&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using ODS excel for printing multiple proc reports on single excel sheet. It appears that first table is deciding column width for all the tables. I'd like to&amp;nbsp;customize column width for each table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp file="C:\Users\XYZ\Desktop\try.xls" options(embedded_titles = 'yes' row_heights='20,35' width_points='1.5' sheet_interval = 'none' sheet_name = 'Class ');&lt;/P&gt;
&lt;P&gt;title j=c bcolor=lightblue "Class - Age gender";&lt;/P&gt;
&lt;P&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name age sex;&lt;BR /&gt;define name / display style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define age / display style(column)=[cellwidth =500] "age";&lt;BR /&gt;define sex / display style(column)=[cellwidth =200] "Sex";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;title j=c bcolor=lightblue "Class -Height Weight"; ;&lt;BR /&gt;&lt;BR /&gt;proc report data=sashelp.class headskip headline spacing=1 nofs split='|' missing&lt;BR /&gt;style(header)=[just=center ]&lt;BR /&gt;style(column)=[protectspecialchars=off asis=on just=center ] ;&lt;BR /&gt;column Name height weight;&lt;BR /&gt;define name / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Subjid";&lt;BR /&gt;define height / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Height";&lt;BR /&gt;define weight / display style(header)=[background=lightGray] style(column)=[cellwidth =200] "Weight";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, though I&amp;nbsp;specified width of 200 for variable Height on second table but its taking width 500 from Age variable on first table.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 22:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Column-width-issue-when-multiple-outputs-on-single/m-p/454948#M20851</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-17T22:18:58Z</dc:date>
    </item>
  </channel>
</rss>

