<?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 How to resolve the &amp;quot;! Headers and Footers&amp;quot;, etc. issue in the SAS-generated Excel File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890756#M351973</link>
    <description>&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;I have created an Excel file using the SAS code inserted here.&lt;/P&gt;
&lt;PRE&gt;/* Direct proc report output to excel */
ods listing close;
ods excel file = "&amp;amp;path\SAS_Solution_WS_&amp;amp;formatted_date..xlsx" 
   options (sheet_name = 'Sheet1'
   flow="header,data" row_heights = '15'
   absolute_column_width='11,11,70,30,55'); 
proc report data=meps_zip_links; 
  column data_year puf_num meps_file file_format  zip_link;
  define puf_num / display ;
  define meps_file / display;
  define data_year / display;
  define file_format / display;
  define zip_link / display ;
  compute zip_link ;
    call define(_col_,"url",zip_link);
  endcomp;
run;
ods excel close;
ods listing;
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;I opened &amp;nbsp;&lt;STRONG&gt;SAS&lt;/STRONG&gt;&lt;STRONG&gt;_Solution_WS_2023-08-12.xlsx&lt;/STRONG&gt; in Excel.&lt;/LI&gt;
&lt;LI&gt;Then I did this&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;File -&amp;gt; Info -&amp;gt; Inspect Workbook -&amp;gt; Inspect Document -&amp;gt; Inspect -&amp;gt; Wait -&amp;gt;&lt;/P&gt;
&lt;P&gt;Issue: I see the two items with an exclamation&amp;nbsp;mark.&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="pkm_edu_0-1692885162527.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87002iE023261514B71499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pkm_edu_0-1692885162527.png" alt="pkm_edu_0-1692885162527.png" /&gt;&lt;/span&gt;&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="pkm_edu_1-1692885162529.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87003i291655BC8508B596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pkm_edu_1-1692885162529.png" alt="pkm_edu_1-1692885162529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: What would I do in my SAS code so the SAS-generated Excel file does not render the above issue?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 13:55:52 GMT</pubDate>
    <dc:creator>pkm_edu</dc:creator>
    <dc:date>2023-08-24T13:55:52Z</dc:date>
    <item>
      <title>How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890756#M351973</link>
      <description>&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;I have created an Excel file using the SAS code inserted here.&lt;/P&gt;
&lt;PRE&gt;/* Direct proc report output to excel */
ods listing close;
ods excel file = "&amp;amp;path\SAS_Solution_WS_&amp;amp;formatted_date..xlsx" 
   options (sheet_name = 'Sheet1'
   flow="header,data" row_heights = '15'
   absolute_column_width='11,11,70,30,55'); 
proc report data=meps_zip_links; 
  column data_year puf_num meps_file file_format  zip_link;
  define puf_num / display ;
  define meps_file / display;
  define data_year / display;
  define file_format / display;
  define zip_link / display ;
  compute zip_link ;
    call define(_col_,"url",zip_link);
  endcomp;
run;
ods excel close;
ods listing;
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;I opened &amp;nbsp;&lt;STRONG&gt;SAS&lt;/STRONG&gt;&lt;STRONG&gt;_Solution_WS_2023-08-12.xlsx&lt;/STRONG&gt; in Excel.&lt;/LI&gt;
&lt;LI&gt;Then I did this&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;File -&amp;gt; Info -&amp;gt; Inspect Workbook -&amp;gt; Inspect Document -&amp;gt; Inspect -&amp;gt; Wait -&amp;gt;&lt;/P&gt;
&lt;P&gt;Issue: I see the two items with an exclamation&amp;nbsp;mark.&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="pkm_edu_0-1692885162527.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87002iE023261514B71499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pkm_edu_0-1692885162527.png" alt="pkm_edu_0-1692885162527.png" /&gt;&lt;/span&gt;&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="pkm_edu_1-1692885162529.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87003i291655BC8508B596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pkm_edu_1-1692885162529.png" alt="pkm_edu_1-1692885162529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: What would I do in my SAS code so the SAS-generated Excel file does not render the above issue?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890756#M351973</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T13:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890763#M351979</link>
      <description>&lt;P&gt;I think the "Headers" warning is just saying that the file has a header.&amp;nbsp; So if you don't want a header you can use a title; statement to clear the titles and you shouldn't get that message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if there is a way to keep the file path out of the metadata / file properties.&amp;nbsp; Will be interested to see thoughts from others.&amp;nbsp; Worst case, you could drop into using SAS to edit the zipped xml.&amp;nbsp; There was an interesting thread on this:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-with-Custom-Property-Names/m-p/842709" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-with-Custom-Property-Names/m-p/842709&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890763#M351979</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-24T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890776#M351981</link>
      <description>&lt;P&gt;I used ODS Excel to generate an XLSX file and then ran the inspector and got the same warning about it having an absolute path.&amp;nbsp; But then I manually unzipped the XLSX file and searched the contents, and couldn't find a path anywhere.&amp;nbsp; So could be a false positive from the inspector.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890776#M351981</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-24T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890795#M351984</link>
      <description>&lt;P&gt;Your comment (false positive) regarding the warning about the absolute path for the SAS-generated Excel file is interesting.&amp;nbsp; I got the same warning the for&amp;nbsp;the Python-generated Excel file from the analysis of the same data&amp;nbsp; when checking it in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the real issue is that I got the "! Header and Footers" warning only for the SAS-generated Excel file, not for&amp;nbsp;the Python-generated Excel file.&amp;nbsp; This issue seems to cause an warning message when comparing the two Excel files using a Python Program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is, What changes do I make to the SAS code submitted to avoid the warning from the&amp;nbsp; Excel "File-&amp;gt;Info-&amp;gt;Inspect Workbook-&amp;gt;Inspect Document-&amp;gt;Inspect"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890795#M351984</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890796#M351985</link>
      <description>&lt;P&gt;I do want the header, not the warning from the running of the Inspector in Excel.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890796#M351985</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890797#M351986</link>
      <description>&lt;P&gt;I think the meaning of the Header warning from Inspector is just "your file has a header".&amp;nbsp; Not sure why MS would think they should warn people of that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I just open Excel, create a file with a header that says 'hello world', save it, and run the inspector, I get the same warning.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890797#M351986</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-24T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890799#M351988</link>
      <description>But, the Python-generated Excel file has no  "! Headers and Fotters" warning from the Inspector.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890799#M351988</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890801#M351990</link>
      <description>&lt;P&gt;Apologies for posting the reply here after replying via email.&lt;/P&gt;
&lt;P&gt;But, the Python-generated Excel file has no&amp;nbsp; “! Headers and Footers” warning from the Inspector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890801#M351990</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890802#M351991</link>
      <description>&lt;P&gt;Does the python file have the header?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you try my test (No SAS or Python, just use Excel to create an excel file with a header), do you also get the header warning from the inspector?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890802#M351991</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-24T15:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890812#M351996</link>
      <description>&lt;P&gt;The python-generated Excel file has no header warning.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I test an Excel file with headers created using Excel (not created using SAS or Python), I don't get the header warning from the inspector.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890812#M351996</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890829#M352000</link>
      <description>&lt;P&gt;Furthermore,&amp;nbsp;&lt;SPAN&gt;The python-generated Excel file has the headers.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 16:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890829#M352000</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-08-24T16:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the "! Headers and Footers", etc. issue in the SAS-generated Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890832#M352001</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; I think I'm out of ideas.&amp;nbsp; Maybe you could dig into the microsoft side and ask them what triggers the Headers warning.&amp;nbsp; Since I get it from even an Excel-created XLSX file, I can't even help test, unfortunately.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 17:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-the-quot-Headers-and-Footers-quot-etc-issue-in/m-p/890832#M352001</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-24T17:05:24Z</dc:date>
    </item>
  </channel>
</rss>

