<?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: ODS EXCEL PROC REPORT - Spanning Header Border in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606295#M17372</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to get is to have "THICK LEFT Border" for "spanning header11",&amp;nbsp;"spanning header12,&amp;nbsp;"spanning header21",&amp;nbsp;"spanning header22".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran the code on Windows, I can see it, but somehow it is not working on Linux environment.&lt;/P&gt;
&lt;P&gt;I attached the excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Hana&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 21:15:59 GMT</pubDate>
    <dc:creator>HanaR</dc:creator>
    <dc:date>2019-11-21T21:15:59Z</dc:date>
    <item>
      <title>ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606279#M17365</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I am Hana.&lt;/P&gt;
&lt;P&gt;I am running SAS 9.4 M2 on Linux Server.&lt;/P&gt;
&lt;P&gt;Currently, having trouble with spanning header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I included my code and outputs- What I have and What I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you could help with this problem, I'd really appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Hana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*";
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="What I Have Currently" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34150iFA3A11ADFCF144D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatIHave.jpg" alt="What I Have Currently" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;What I Have Currently&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="What I Want" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34151i482E735AB37A90BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatIWant.jpg" alt="What I Want" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;What I Want&lt;/span&gt;&lt;/span&gt;
%macro generate_excel_tables(run_env=);

 %let excel_file_name = %str(ods_excel_ouput_&amp;amp;run_env..xlsx);

 %if &amp;amp;run_env. = %str(windows) %then %do;
     %let excel_file_out = %str(C:\Users\Reed_H\Downloads\TEMP\&amp;amp;excel_file_name.); /* windows */
 %end;
 %else %do;
     %let excel_file_out = %str(/home/reedh/reedTest/data/output/&amp;amp;excel_file_name.); /* linux */
 %end;
  
  ods listing close;
  
  ods escapechar='^';
  
  options leftmargin=0.35in
          rightmargin=0.35in
          topmargin=0.75in
          bottommargin=0.75in
          papersize=letter
          ;
  
  ods excel file = "&amp;amp;excel_file_out."
            options (embedded_titles='yes'
                     embedded_footnotes='yes'
                     orientation='landscape'
                     print_header_margin='0.3'
                     print_footer_margin='0.3'
                     print_footer="Page &amp;amp;P of &amp;amp;N"
                    ) 
            ; 
                 
  title font='Times New Roman' justify=left h=11pt color=black "****** ODS EXCEL ******** ";
         
  ods excel options(row_repeat='1-6'
                    scale="80");

  proc report data=sashelp.citiqtr(obs=1) nowd split = '*'
              style(report)={rules = all
                             frame = box}

              style(header)={font_face = "times new roman"
                             font_size = 10pt
                             font_weight = medium
                             font_style = roman
                             foreground = black
                             background = white
                             just = c
                             vjust = c
                             bordertopcolor = black
                             borderbottomcolor = black
                             borderleftcolor = black
                             borderrightcolor = black
                             bordertopwidth=5
                             borderbottomwidth=10}

              style(column)={font_face = "Albany AMT"
                             font_size = 10pt
                             font_weight = medium
                             font_style = roman
                             foreground = black
                             background = white
                             bordertopcolor = black
                             borderbottomcolor = black
                             borderleftcolor = black
                             borderrightcolor = black}
              ;
              columns bpb
                      bpcr
                     ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header11"
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header21" gc gd)
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header31" gcdq gcq))                        
                     ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header12"
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header22" gdp gyd)
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header42" gdpq gydq))
              ;               
              define bpb  / "Bal1"; 
              define bpcr / "Bal2"  ; 
              define gc   / "GC" 
                             style(header column)={borderleftwidth=10}; 
              define gd   / "GD" ; 
              define gcdq / "GCDQ" ; 
              define gcq  / "GCQ" ; 
              define gdp  / "GDP" 
                             style(header column)={borderleftwidth=10};
              define gyd  / "GYD" ; 
              define gdpq / "GDPQ" ; 
              define gydq / "GYDQ" ; 
  run;
 
  ods excel close;
  ods listing;
 
%exit: %mend generate_excel_tables;

%generate_excel_tables(run_env=linux) /* windows or linux */
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606279#M17365</guid>
      <dc:creator>HanaR</dc:creator>
      <dc:date>2019-11-21T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606292#M17371</link>
      <description>I am having difficulty understanding what the desired change is. Do you want to change the row height for row 4?</description>
      <pubDate>Thu, 21 Nov 2019 21:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606292#M17371</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2019-11-21T21:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606295#M17372</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to get is to have "THICK LEFT Border" for "spanning header11",&amp;nbsp;"spanning header12,&amp;nbsp;"spanning header21",&amp;nbsp;"spanning header22".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran the code on Windows, I can see it, but somehow it is not working on Linux environment.&lt;/P&gt;
&lt;P&gt;I attached the excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Hana&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 21:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606295#M17372</guid>
      <dc:creator>HanaR</dc:creator>
      <dc:date>2019-11-21T21:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606300#M17374</link>
      <description>&lt;P&gt;I would suggest providing an actual unit in any width setting, or anything related to size actually. Some ranges of values depending on ODS destination/operating system / viewer seem to get treated as narrow/ medium / wide and small differences may not be visible.&lt;/P&gt;
&lt;P&gt;You can use fractional measurements such as 1.5mm or 0.1in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pixels however are not a good unit as they depend on the display device and are not consistent.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 21:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606300#M17374</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606306#M17376</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for suggestions.&lt;/P&gt;
&lt;P&gt;Even specifying measurement, "inch", still doesn't display thicker border for those spanning header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Hana&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 21:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606306#M17376</guid>
      <dc:creator>HanaR</dc:creator>
      <dc:date>2019-11-21T21:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606338#M17383</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I could not zoom on your picture to see the 2 screen shots larger. This is what I get in SAS 9.4 M5 when I run your code (slightly modified):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="results_excel_94M5.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34154iBA31B3BD826E7540/image-size/large?v=v2&amp;amp;px=999" role="button" title="results_excel_94M5.png" alt="results_excel_94M5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code I ran. I did not see the need for your macro, since I am running on Windows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
   
  ods listing close;
  
  ods escapechar='^';
  
  options leftmargin=0.35in
          rightmargin=0.35in
          topmargin=0.75in
          bottommargin=0.75in
          papersize=letter
          ;
  
  ods excel file = "c:\temp\style_excel.xlsx"
            options (embedded_titles='yes'
                     embedded_footnotes='yes'
                     orientation='landscape'
                     print_header_margin='0.3'
                     print_footer_margin='0.3'
                     print_footer="Page &amp;amp;P of &amp;amp;N"
                    ) 
            ; 
                 
  title font='Times New Roman' justify=left h=11pt color=black 
      "****** ODS EXCEL version &amp;amp;sysvlong4 ******** ";
         
  ods excel options(row_repeat='1-6'
                    scale="80");

  proc report data=sashelp.citiqtr(obs=1) nowd split = '*'
              style(report)={rules = all
                             frame = box}

              style(header)={font_face = "times new roman"
                             font_size = 10pt
                             font_weight = medium
                             font_style = roman
                             foreground = black
                             background = white
                             just = c
                             vjust = c
                             bordertopcolor = black
                             borderbottomcolor = black
                             borderleftcolor = black
                             borderrightcolor = black
                             bordertopwidth=5
                             borderbottomwidth=10}

              style(column)={font_face = "Albany AMT"
                             font_size = 10pt
                             font_weight = medium
                             font_style = roman
                             foreground = black
                             background = white
                             bordertopcolor = black
                             borderbottomcolor = black
                             borderleftcolor = black
                             borderrightcolor = black}
              ;
              columns bpb
                      bpcr
                     ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header11"
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header21" gc gd)
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header31" gcdq gcq))                        
                     ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header12"
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header22" gdp gyd)
                       ("^S={borderleftcolor=red borderrightcolor=red borderleftwidth=10 borderrightwidth=10}spanning header42" gdpq gydq))
              ;               
              define bpb  / "Bal1"; 
              define bpcr / "Bal2"  ; 
              define gc   / "GC" 
                             style(header column)={borderleftwidth=10}; 
              define gd   / "GD" ; 
              define gcdq / "GCDQ" ; 
              define gcq  / "GCQ" ; 
              define gdp  / "GDP" 
                             style(header column)={borderleftwidth=10};
              define gyd  / "GYD" ; 
              define gdpq / "GDPQ" ; 
              define gydq / "GYDQ" ; 
  run;
 
  ods excel close;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2019 23:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606338#M17383</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-21T23:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606449#M17409</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I didn't have any problem to get the results when I ran this code on windows, SAS9.4M5.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;The problem is that the code ran on&lt;U&gt;&lt;STRONG&gt; SAS 9.4 M2 on Linux Server.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Hana&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 13:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606449#M17409</guid>
      <dc:creator>HanaR</dc:creator>
      <dc:date>2019-11-22T13:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL PROC REPORT - Spanning Header Border</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606452#M17411</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got an answer from SAS tech Support; it is related to SAS version.&lt;/P&gt;
&lt;P&gt;This issue wouldn't appear sas 9.4 m3 and higher version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks to all who responded to this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 13:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL-PROC-REPORT-Spanning-Header-Border/m-p/606452#M17411</guid>
      <dc:creator>HanaR</dc:creator>
      <dc:date>2019-11-22T13:46:11Z</dc:date>
    </item>
  </channel>
</rss>

