<?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: Sas Program Ods excel options in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986420#M379926</link>
    <description>&lt;P&gt;My output is only in 'Helvetica'.... I'm not able to find a solution.... In attached my output.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2026 07:29:39 GMT</pubDate>
    <dc:creator>Tecla1</dc:creator>
    <dc:date>2026-04-16T07:29:39Z</dc:date>
    <item>
      <title>Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986395#M379918</link>
      <description>&lt;P&gt;Good Afternoon, I'm trying to output files in excel format but I'm not able, the file have ever the same wrong format. I need font Arial and fixed row height. Tnks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define style mystyle;
   parent = styles.normal;
   Style data /
   font_face= 'Microsoft Arial'
   fontsize=10pt
   borderbottomcolor=black
   verticalign=middle;
   end;
run;

ods excel file="/sas_share/NAS_SDR_814/EX_824/Attivita/prova.xlsx" style=mystyle options(
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
    autofilter='all'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    /*comando per togliere a capo*/
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2026 16:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986395#M379918</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-15T16:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986397#M379919</link>
      <description>&lt;P&gt;You did not share any code that would actually write anything to the ODS EXCEL destination.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 17:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986397#M379919</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-04-15T17:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986416#M379923</link>
      <description>&lt;P&gt;You would need one or more procedures that write output such as Proc Print, Proc Report, a data step with the correct options, a modeling proc, something.&lt;/P&gt;
&lt;P&gt;Then there would have to be an ODS EXCEL CLOSE; after the procedures so SAS knows when you are done writing to the file.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 06:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986416#M379923</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2026-04-16T06:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986417#M379924</link>
      <description>&lt;P&gt;'Microsoft Arial' is not valid font name for sas , try 'Arial' :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc template;
   define style mystyle;
   parent = styles.normal;
   Style data /
   font_face= &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'Arial'&lt;/STRONG&gt;&lt;/FONT&gt;
   fontsize=10pt
   borderbottomcolor=black
   ;
   end;
run;

ods excel file="c:\temp\prova.xlsx" style=mystyle options(
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    /*comando per togliere a capo*/
);

proc report data=sashelp.class nowd;
run;
ods excel close;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2026 06:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986417#M379924</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-16T06:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986418#M379925</link>
      <description>&lt;P&gt;Good morning Ksharp, thi is my "proc report", Is it possible to set a fixed height for Excel rows? I looked in SAS help but didn't find it.... Many thnks for your kindly help!&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define style mystyle;
   parent = styles.normal;
   Style data /
   font_face= 'Arial'
   fontsize=10pt
   borderbottomcolor=black
   ;
   end;
run;

ods excel file="/OUTPUT/prova.xlsx" style=mystyle options(
	
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
    autofilter='all'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    
);

proc report data=new.&amp;amp;nome.  nowd
    style(report)=[frame=void rules=none width=50%]; 
	/*style(column)={tagattr='wraptext:no' width=100%};
	style(header)=[background=cx4472C4 foreground=white font_weight=bold];  
    define AGGIORNAMENTI / style(header)=[background=#009597 foreground=white font_weight=bold]; 
	
run;

ods excel close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2026 07:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986418#M379925</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-16T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986420#M379926</link>
      <description>&lt;P&gt;My output is only in 'Helvetica'.... I'm not able to find a solution.... In attached my output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 07:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986420#M379926</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-16T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986422#M379927</link>
      <description>&lt;PRE&gt;proc template;
   define style mystyle;
   parent = styles.normal;
   Style data /
   &lt;STRONG&gt;font_face= 'Arial'&lt;/STRONG&gt;
   fontsize=10pt
   borderbottomcolor=black
   ;
   end;
run;

ods excel file="c:\temp\prova.xlsx" style=mystyle options(
&lt;STRONG&gt; Row_Heights='20,80,0,0,0,0,0'&lt;/STRONG&gt;
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    /*comando per togliere a capo*/
);

proc report data=sashelp.class 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="屏幕截图 2026-04-16 164217.png" style="width: 627px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114271iF8AD2C714DBA6E39/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-04-16 164217.png" alt="屏幕截图 2026-04-16 164217.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 08:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986422#M379927</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-16T08:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986424#M379928</link>
      <description>&lt;P&gt;If your template is not working for you , you could try PROC REPORT 's style:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;
ods excel file="c:\temp\prova.xlsx"  options(
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    /*comando per togliere a capo*/
);

proc report data=sashelp.class nowd;
define _all_/&lt;STRONG&gt;style(column)={font_face='Arial'}&lt;/STRONG&gt;;
run;
ods excel close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-04-16 164822.png" style="width: 637px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114272i7850CA461DFE725B/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-04-16 164822.png" alt="屏幕截图 2026-04-16 164822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 08:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986424#M379928</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-16T08:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986426#M379929</link>
      <description>&lt;P&gt;My output is ever in 'Helvetica...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 09:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986426#M379929</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-16T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986430#M379930</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I don't know what to say. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Even I used English version SAS to run code and also could get 'Arial' font.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe your sas did not register this font ? Could you try other font ?&lt;/P&gt;
&lt;P&gt;Using the following code to check what fonts your sas have? If you don't have it ,you could register it .&lt;/P&gt;
&lt;PRE&gt;/*
https://communities.sas.com/t5/ODS-and-Base-Reporting/Arial-narrow-font-in-RTF/m-p/934392#M26626
*/

/*Check the fonts have been registered*/
proc registry startat="\CORE\PRINTING\FREETYPE\FONTS" list;
run;

/*Register a font*/
proc fontreg mode=all msglevel=verbose;
fontfile "c:\windows\fonts\arialn.ttf";
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc template;
   define style mystyle;
   parent = styles.normal;
   Style data /
   font_face= 'Arial'
   fontsize=10pt
   borderbottomcolor=black
   ;
   end;
run;

ods excel file="c:\temp\prova.xlsx" style=mystyle options(
 Row_Heights='20,80,0,0,0,0,0'
   sheet_name="Dati"
    embedded_titles='yes'
	GRIDLINES= 'ON'
	AUTOFIT_HEIGHT = "OFF"
    frozen_headers='yes'
    tab_color='blue'
	flow='tables'    /*comando per togliere a capo*/
);

proc report data=sashelp.class 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="屏幕截图 2026-04-16 180220.png" style="width: 431px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114273iD000A89D21CCC62F/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-04-16 180220.png" alt="屏幕截图 2026-04-16 180220.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 10:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986430#M379930</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-16T10:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986431#M379931</link>
      <description>&lt;P&gt;The output of registry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;ttf&amp;gt; Arial Symbol]&lt;BR /&gt;[ Attributes]&lt;BR /&gt;Family=int:2&lt;BR /&gt;Format="TRUETYPE"&lt;BR /&gt;Scale=int:1&lt;BR /&gt;Sizes="6,7,8,9,10,11,(12,73,2)"&lt;BR /&gt;Spacing=int:8&lt;BR /&gt;Type=int:0&lt;BR /&gt;Width=int:2&lt;BR /&gt;[ Character Sets]&lt;BR /&gt;Apple Roman8=LINK:"\CORE\PRINTING\FREETYPE\CHARACTER SETS\1\0"&lt;BR /&gt;Unicode=LINK:"\CORE\PRINTING\FREETYPE\CHARACTER SETS\3\1"&lt;BR /&gt;[ Code]&lt;BR /&gt;[ 104]&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 10:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986431#M379931</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-16T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986432#M379932</link>
      <description>My result is "Albany AMT"&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Apr 2026 10:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986432#M379932</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-16T10:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986478#M379946</link>
      <description>&lt;P&gt;Could you use WORD to check the 'Arial' font in your system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Or could you try other 'Arial' font like 'Arial unicode MS' ?&lt;/P&gt;
&lt;P&gt;If that also does not work, I suggest you raise a ticket to SAS support:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support.html#contact" target="_blank"&gt;https://support.sas.com/en/technical-support.html#contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sas support would help you to solve this issue I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-04-17 180220.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114288i0A35E9188DD612BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-04-17 180220.png" alt="屏幕截图 2026-04-17 180220.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 06:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986478#M379946</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-17T06:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Program Ods excel options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986483#M379947</link>
      <description>&lt;P&gt;Many tnks for your kindly replay.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 07:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-Program-Ods-excel-options/m-p/986483#M379947</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-04-17T07:13:32Z</dc:date>
    </item>
  </channel>
</rss>

