<?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 reduce column width in Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964285#M375560</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; showed you :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; ods excel file='c:\temp\footer.xlsx'    
          options(absolute_column_width='&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1,&lt;/STRONG&gt;&lt;/FONT&gt;12,12,12,12,12,12' start_at="B1" embedded_titles='yes');
		  title justify=center bold height=12pt "REPORT TEST";
proc report data=sashelp.class(obs=5) nowd;
run;
ods excel close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1744688728679.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106230iBC68818A023862B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1744688728679.png" alt="Ksharp_0-1744688728679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 03:46:46 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-04-15T03:46:46Z</dc:date>
    <item>
      <title>How to reduce column width in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964202#M375537</link>
      <description>Hello, I am creating an Excel file using the following code. &lt;BR /&gt;The table in Excel starts from column B. &lt;BR /&gt;I want to minimize the width of the empty column A in Excel. &lt;BR /&gt;How do I do this?&lt;BR /&gt;&lt;BR /&gt;The code:&lt;BR /&gt;%macro create_report(area=,sheet=);&lt;BR /&gt;ods excel options (sheet_interval="proc" sheet_name="&amp;amp;sheet." start_at="B1" embedded_titles='yes');&lt;BR /&gt;title justify=center bold height=12pt "REPORT TEST";&lt;BR /&gt;proc report data= work.ATM_LEUMI_HIZUI_P nowd&lt;BR /&gt;style(column)={just=right font_face="Arial" font_size=10pt background=white}&lt;BR /&gt;style(header)={background=cxD9E1F2 foreground=cx0F2B50 font_weight=bold font_size=10pt just=center};&lt;BR /&gt;     column&lt;BR /&gt;           'AREA'n&lt;BR /&gt;           'BRANCH'n;&lt;BR /&gt;     define 'AREA'n /display;&lt;BR /&gt;     define 'BRANCH'n /display style(column)={cellwidth=110pt};&lt;BR /&gt;     %if &amp;amp;area. ne ALL %then %do; where 'AREA'n="&amp;amp;area."; %end;&lt;BR /&gt;RUN;&lt;BR /&gt;%mend create_report;&lt;BR /&gt;&lt;BR /&gt;ods excel file="/cifs/accounts/ATM_LEUMI_HIZUI.xlsx";&lt;BR /&gt;%create_report(area=ALL,sheet=HIZUY);&lt;BR /&gt;%create_report(area=NORTH,sheet=NORTH);&lt;BR /&gt;%create_report(area=SOUTH,sheet=SOUTH);&lt;BR /&gt;ods excel close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2025 10:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964202#M375537</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2025-04-14T10:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce column width in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964203#M375538</link>
      <description>&lt;PRE&gt;(ABSOLUTE_COLUMN_WIDTH ='number-list '| 'NONE') 


specifies the columnwidths. Lists widths to use for columns instead of allowing SAS todetermine the column width (measured widths). The number-list isa comma separated list of numbers. You can use 'NONE' toreset to the default. 

Default None. SAS determines the width. 
Example ods excel file='footer.xlsx'    
          options(absolute_column_width='16');
proc print data=sashelp.class(obs=5);
run;
ods excel close;

 
&lt;/PRE&gt;
&lt;P&gt;From the online help on ODS EXCEL. This sets the first column to 16. If you want to specify additional widths separate the values by columns in a list following absolute_column_width= such as ('1,12,45'). &lt;/P&gt;
&lt;P&gt;Columns to the right of the number specified are treated as default determined by SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 10:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964203#M375538</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-04-14T10:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce column width in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964285#M375560</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; showed you :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; ods excel file='c:\temp\footer.xlsx'    
          options(absolute_column_width='&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1,&lt;/STRONG&gt;&lt;/FONT&gt;12,12,12,12,12,12' start_at="B1" embedded_titles='yes');
		  title justify=center bold height=12pt "REPORT TEST";
proc report data=sashelp.class(obs=5) nowd;
run;
ods excel close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1744688728679.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106230iBC68818A023862B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1744688728679.png" alt="Ksharp_0-1744688728679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 03:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reduce-column-width-in-Excel/m-p/964285#M375560</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-15T03:46:46Z</dc:date>
    </item>
  </channel>
</rss>

