<?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 Reducing column width with PROC REPORT exported vial Excel Tagset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reducing-column-width-with-PROC-REPORT-exported-vial-Excel/m-p/442938#M20589</link>
    <description>&lt;P&gt;I am trying to produce a multiple-sheet workbook that shows the total number of bachelors, masters, and doctoral degrees for different degree classifications. For some reason, in the code example below, the CATEGORY and FIELD variables have extremely wide cells in the excel workbook, and I cannot find out how to reduce the size. I've attached a file (with no data) that shows the header widths. I've tried using the absolute_column_width option, but it produces no changes in the spreadsheet.&amp;nbsp; Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS TAGSETS.EXCELXP PATH='C:/Desktop' FILE="NEWDATA.XML" STYLE=statistical;
ods tagsets.ExcelXP options(orientation='Portrait'
							frozen_headers='yes'
							row_repeat='1-3'
							row_repeat='2'
							autofilter='2-3'
							fittopage='no'
							absolute_column_width='none'
							pages_fitwidth='1'
							pages_fitheight='100'
							width_fudge='0.8'
							sheet_interval='Bygroup'
							missing=' '
							);

PROC REPORT DATA=HAVE nowindows split='*';
	by year;
	COLUMN YEAR CATEGORY FIELD TOTAL_BACHELORS TOTAL_MASTERS TOTAL_DOCTORATES;
	DEFINE YEAR / display ;
	DEFINE CATEGORY / display ;
	DEFINE FIELD / display 'Field of Study' left style={just=l} ;
	DEFINE TOTAL_BACHELORS / display;
	DEFINE TOTAL_MASTERS / display;
	DEFINE TOTAL_DOCTORATES / display;
	BREAK AFTER YEAR/SUMMARIZE ;
	RUN; 
TITLE;
ods tagsets.ExcelXP close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Mar 2018 15:58:35 GMT</pubDate>
    <dc:creator>svh</dc:creator>
    <dc:date>2018-03-06T15:58:35Z</dc:date>
    <item>
      <title>Reducing column width with PROC REPORT exported vial Excel Tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reducing-column-width-with-PROC-REPORT-exported-vial-Excel/m-p/442938#M20589</link>
      <description>&lt;P&gt;I am trying to produce a multiple-sheet workbook that shows the total number of bachelors, masters, and doctoral degrees for different degree classifications. For some reason, in the code example below, the CATEGORY and FIELD variables have extremely wide cells in the excel workbook, and I cannot find out how to reduce the size. I've attached a file (with no data) that shows the header widths. I've tried using the absolute_column_width option, but it produces no changes in the spreadsheet.&amp;nbsp; Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS TAGSETS.EXCELXP PATH='C:/Desktop' FILE="NEWDATA.XML" STYLE=statistical;
ods tagsets.ExcelXP options(orientation='Portrait'
							frozen_headers='yes'
							row_repeat='1-3'
							row_repeat='2'
							autofilter='2-3'
							fittopage='no'
							absolute_column_width='none'
							pages_fitwidth='1'
							pages_fitheight='100'
							width_fudge='0.8'
							sheet_interval='Bygroup'
							missing=' '
							);

PROC REPORT DATA=HAVE nowindows split='*';
	by year;
	COLUMN YEAR CATEGORY FIELD TOTAL_BACHELORS TOTAL_MASTERS TOTAL_DOCTORATES;
	DEFINE YEAR / display ;
	DEFINE CATEGORY / display ;
	DEFINE FIELD / display 'Field of Study' left style={just=l} ;
	DEFINE TOTAL_BACHELORS / display;
	DEFINE TOTAL_MASTERS / display;
	DEFINE TOTAL_DOCTORATES / display;
	BREAK AFTER YEAR/SUMMARIZE ;
	RUN; 
TITLE;
ods tagsets.ExcelXP close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Mar 2018 15:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reducing-column-width-with-PROC-REPORT-exported-vial-Excel/m-p/442938#M20589</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2018-03-06T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing column width with PROC REPORT exported vial Excel Tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reducing-column-width-with-PROC-REPORT-exported-vial-Excel/m-p/442943#M20591</link>
      <description>&lt;P&gt;Hi, typically, you use a STYLE(COLUMN)= override. so instead of what you have (which is not really the way to code, I would recommend that you use the STYLE(COLUMN) and STYLE(HEADER) method of performing style overrides and use the WIDTH= attribute.&lt;BR /&gt;&lt;BR /&gt;As an example (changing colors too):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	DEFINE CATEGORY / display
             style(column)={width=1.5in} ;
	DEFINE FIELD / display 'Field of Study' left 
             style(header)={just=l background=lightyellow} 
             style(column)={just=l width=1.5in background=peachpuff};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 16:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reducing-column-width-with-PROC-REPORT-exported-vial-Excel/m-p/442943#M20591</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-06T16:05:57Z</dc:date>
    </item>
  </channel>
</rss>

