<?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 do I control the spacing in the header cell for my Proc Report that is exported in Excel? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861625#M340342</link>
    <description>Thank you for that. I just sent an email to Tech Support - I didn't know that was an option before.</description>
    <pubDate>Tue, 28 Feb 2023 23:41:32 GMT</pubDate>
    <dc:creator>InspectahDex</dc:creator>
    <dc:date>2023-02-28T23:41:32Z</dc:date>
    <item>
      <title>How do I control the spacing in the header cell for my Proc Report that is exported in Excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861571#M340328</link>
      <description>&lt;P&gt;This is the top portion of the Excel file created using ODS Excel and Proc Report. Notice that the spacing is odd in the header row.&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="InspectahDex_0-1677614221289.png" style="width: 738px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80965i42B8F7EB3906C449/image-dimensions/738x179?v=v2" width="738" height="179" role="button" title="InspectahDex_0-1677614221289.png" alt="InspectahDex_0-1677614221289.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the desired output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InspectahDex_1-1677614319628.png" style="width: 728px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80966i15CF1E00F2C331B9/image-dimensions/728x57?v=v2" width="728" height="57" role="button" title="InspectahDex_1-1677614319628.png" alt="InspectahDex_1-1677614319628.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do I need to modify in my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods excel file="&amp;amp;datapath.\Results\CostMitigationResults_&amp;amp;thiswk._ALL.xlsx"&lt;BR /&gt;options(sheet_name='AllInitiativeDetail' &lt;BR /&gt;frozen_headers = 'yes');&lt;/P&gt;
&lt;P&gt;options missing=0;&lt;/P&gt;
&lt;P&gt;proc report data=ss.AllDetail&lt;BR /&gt;style(header)=[background=#DAEEF3 fontweight=bold foreground=black] &lt;BR /&gt;style(summary)=[background=#92CDDC fontweight=bold foreground=black];&lt;BR /&gt;column ('Cost Mitigation for All Provider Contracting Agreements and Initiatives'&lt;BR /&gt;Region&lt;BR /&gt;'Hospital or Provider Name'n&lt;BR /&gt;Initiative&lt;BR /&gt;'Effective Month/Year'n&lt;BR /&gt;'2021 Cost Mitigation'n &lt;BR /&gt;'2022 Cost Mitigation'n&lt;BR /&gt;'2023 Cost Mitigation'n&lt;BR /&gt;'2024 Cost Mitigation'n&lt;BR /&gt;Total&lt;BR /&gt;'Previous Total'n&lt;BR /&gt;'Variance to Prior Week'n);&lt;/P&gt;
&lt;P&gt;define Region / display;&lt;BR /&gt;define 'Hospital or Provider Name'n / display;&lt;BR /&gt;define Initiative / display;&lt;BR /&gt;define '2021 Cost Mitigation'n / analysis;&lt;BR /&gt;define '2022 Cost Mitigation'n / analysis;&lt;BR /&gt;define '2023 Cost Mitigation'n / analysis;&lt;BR /&gt;define '2024 Cost Mitigation'n / analysis;&lt;BR /&gt;define Total / analysis;&lt;BR /&gt;define 'Previous Total'n / analysis;&lt;BR /&gt;define 'Variance to Prior Week'n / display;&lt;BR /&gt;compute 'Variance to Prior Week'n;&lt;BR /&gt;if 'Variance to Prior Week'n ne 0 and 'Variance to Prior Week'n ne "" then call define(_row_,"style","style={background=cxEEFFFF}");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 19:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861571#M340328</guid>
      <dc:creator>InspectahDex</dc:creator>
      <dc:date>2023-02-28T19:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I control the spacing in the header cell for my Proc Report that is exported in Excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861624#M340341</link>
      <description>&lt;P&gt;Hi: I cannot duplicate your experience. I am using SAS 9.4 M7 with ODS EXCEL. Since you didn't post data, I used SASHELP.SHOES and just defined aliases so I could keep using sales, inventory and returns over and over. I don't have any issues, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1677626396244.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80969i0850F46A07CB8C24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1677626396244.png" alt="Cynthia_sas_0-1677626396244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see that I've scrolled because I had obs=10 and I've scrolled up to show the frozen headers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code I used.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1677626503261.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80970iA7F2BB90DE2094CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1677626503261.png" alt="Cynthia_sas_1-1677626503261.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you are not getting the same results, I'd suggest opening a track with Tech Support so they can look at ALL your code and some of your sample data and see if they can duplicate your results.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 23:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861624#M340341</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-02-28T23:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I control the spacing in the header cell for my Proc Report that is exported in Excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861625#M340342</link>
      <description>Thank you for that. I just sent an email to Tech Support - I didn't know that was an option before.</description>
      <pubDate>Tue, 28 Feb 2023 23:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-control-the-spacing-in-the-header-cell-for-my-Proc/m-p/861625#M340342</guid>
      <dc:creator>InspectahDex</dc:creator>
      <dc:date>2023-02-28T23:41:32Z</dc:date>
    </item>
  </channel>
</rss>

