<?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: proc report---export to excel--row height in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966469#M376138</link>
    <description>&lt;P&gt;You can try ABSOLUTE_COLUMN_WIDTH. The following will make all column widths 20. If you want to customize each column width, you would need to add more values separated by commas for each column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='test.xlsx'
 options(absolute_column_width='20');&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 May 2025 12:06:18 GMT</pubDate>
    <dc:creator>Kathryn_SAS</dc:creator>
    <dc:date>2025-05-14T12:06:18Z</dc:date>
    <item>
      <title>proc report---export to excel--row height</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966186#M376054</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;am running proc reports and export it into Excel file.&lt;/P&gt;
&lt;P&gt;In one sheet I see that row height is too big&amp;nbsp; (Right click in excel ---Row Height----I see&amp;nbsp; the height is 29).&lt;/P&gt;
&lt;P&gt;I want to modify the row height to 15.&lt;/P&gt;
&lt;P&gt;I also see that&amp;nbsp;DIF_FROM_PREV_MON&amp;nbsp; looks bad when it is negative and can see only one bracket ) instead of two ()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is photo how how it looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1746812671962.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106846i6E69141AC07A20B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1746812671962.png" alt="Ronein_0-1746812671962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a photo how I want it to look :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_1-1746812746278.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106847iF5EAA81E738BE797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_1-1746812746278.png" alt="Ronein_1-1746812746278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the proc report code :&lt;/P&gt;
&lt;P&gt;I export it using ODS EXCEL.&lt;/P&gt;
&lt;P&gt;What change should I do in my proc report code to solve the 2 problems I mentioned:&lt;/P&gt;
&lt;P&gt;1- reduce row height to 15&lt;/P&gt;
&lt;P&gt;2- get two brackets in negative number (Now i see only one)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=S2 missing nowd;
column 
Ind
YYMM

("NR"
x	
w
z	
r
t)

("PCT"
P_w
P_z
P_r
P_t)

("DIF_FROM_PREV_MON"
P_Dif_w
P_Dif_z
P_Dif_r
P_Dif_t)
;
define IND /  DISPLAY;
define YYMM /  DISPLAY;

define x /  DISPLAY f=comma32.;
define w /  DISPLAY  f=comma32.;
define z /  DISPLAY  f=comma32.;
define r /  DISPLAY  f=comma32.; 
define t /  DISPLAY  f=comma32.;

define P_w /  DISPLAY;
define P_z /  DISPLAY;
define P_r /  DISPLAY;
define P_t /  DISPLAY;

define P_Dif_w / DISPLAY;
define P_Dif_z /  DISPLAY;
define P_Dif_r /  DISPLAY;
define P_Dif_t /  DISPLAY;

	compute IND;
		if IND = 0 then
			do;
				call define (_col_,"style", "style={background=lightgreen}");
			end;
		else if IND =1 then
			do;
				call define (_col_,"style", "style={background=lightred}");
			end;
	endcomp;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 May 2025 17:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966186#M376054</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-05-09T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc report---export to excel--row height</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966199#M376064</link>
      <description>&lt;P&gt;Looks to me your issue is with the column width, not the row height.&lt;/P&gt;
&lt;P&gt;In your first picture the PCT*W column is wrapping into two lines, which is why it needed to make the row taller.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 20:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966199#M376064</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-09T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc report---export to excel--row height</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966205#M376066</link>
      <description>Thanks.&lt;BR /&gt;Should I use ABSOLUTE_COLUMN_WIDTH ?</description>
      <pubDate>Fri, 09 May 2025 22:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966205#M376066</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-05-09T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc report---export to excel--row height</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966469#M376138</link>
      <description>&lt;P&gt;You can try ABSOLUTE_COLUMN_WIDTH. The following will make all column widths 20. If you want to customize each column width, you would need to add more values separated by commas for each column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='test.xlsx'
 options(absolute_column_width='20');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 May 2025 12:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-export-to-excel-row-height/m-p/966469#M376138</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-05-14T12:06:18Z</dc:date>
    </item>
  </channel>
</rss>

