<?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: Add a Header Row After Exporting to Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973142#M377648</link>
    <description>&lt;P&gt;Check the header of the file.&amp;nbsp; By default the title is not written to a cell in the spreadsheet, instead it is written to the header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think in Excel you can still do Page Setup to see the headers.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 18:31:27 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2025-08-22T18:31:27Z</dc:date>
    <item>
      <title>Add a Header Row After Exporting to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973136#M377647</link>
      <description>&lt;P&gt;I am very beginner at sas. I made a table in sas using proc sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I exported to excel with this code which I was told should put a title on the table. However, while it printed onto the excel, theres no title at the top. Not sure what else I can do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods excel file="C:\Users\Name\Documents\EPI 612\Lab1Table1Excel.xlsx"

&amp;nbsp; &amp;nbsp; &amp;nbsp;options (sheet_name="Rates");

&amp;nbsp; &amp;nbsp; &amp;nbsp;title "Rates for 2025";

&amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=final_rates_tab noobs label;

run;

ods excel close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 18:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973136#M377647</guid>
      <dc:creator>BEANIE_SIGH</dc:creator>
      <dc:date>2025-08-22T18:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Header Row After Exporting to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973142#M377648</link>
      <description>&lt;P&gt;Check the header of the file.&amp;nbsp; By default the title is not written to a cell in the spreadsheet, instead it is written to the header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think in Excel you can still do Page Setup to see the headers.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 18:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973142#M377648</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-08-22T18:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Header Row After Exporting to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973143#M377649</link>
      <description>&lt;P&gt;With the ODS EXCEL destination, you need to use the EMBEDDED_TITLES= suboption as shown below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="C:\Users\Name\Documents\EPI 612\Lab1Table1Excel.xlsx"
     options (sheet_name="Rates" embedded_titles='yes');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The documentation shows the other suboptions that are useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm#p0258wnlz15ubrn1vqfalp6l4hjz" target="_self"&gt;ODS EXCEL Options&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 18:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-Header-Row-After-Exporting-to-Excel/m-p/973143#M377649</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-08-22T18:33:41Z</dc:date>
    </item>
  </channel>
</rss>

