<?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: PROC Report - Exporting with ODS EXCEL changes format of text in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/814436#M40710</link>
    <description>&lt;P&gt;I just learn this option :&amp;nbsp; flow="tables"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "c:\temp\temp.xlsx" 
    options(sheet_interval='none' embedded_titles='yes' &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;flow="tables"&lt;/STRONG&gt;&lt;/FONT&gt;) ; 

ods escapechar = '^'  ;
options missing = 0 orientation=landscape center ; 

proc report data =sashelp.class nowd split = '-' 
                                style(header)={tagattr="wrap:no" background=white 
bordertopwidth=1 bordercolor=black 
borderrightwidth=1 borderrightcolor=black 
color=black just=c textalign=c} 
                                style(report)={borderwidth=1 bordercolor=black just=c}
                                style(column)= {borderwidth=1 bordercolor=black just=r color=black tagattr='format:###,###,###,###,###0'}
                                style(summary)= [just=c textalign=c];
;

column ( '^{style[color=red]Total}'  
       ('^{style[borderwidth=1 bordercolor=white ] Category (before change/extension) -  Performingtime'
        sex weight height ) );

define sex / group ; 
define weight / analysis sum ; 
define height / analysis sum ; 
run ; 

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1653054934258.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71663i793AF1530712A6DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1653054934258.png" alt="Ksharp_0-1653054934258.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 13:55:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-05-20T13:55:56Z</dc:date>
    <item>
      <title>PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812445#M40651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a problem i already wrote but couldn't find an answer so i am trying to be more clear on what i want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a proc report adding headers above columns. The HTML output shown in SAS Entreprise Guide gives me this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_0-1652197824184.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71273i2402C0C6E2909AD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_0-1652197824184.png" alt="isgnr_0-1652197824184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When exporting it with ODS EXCEL, Excel does whatever it wants and displays it like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_1-1652197862549.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71274i7B50040F25ED5BB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_1-1652197862549.png" alt="isgnr_1-1652197862549.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;While i want an output looking like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_2-1652198082442.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71276iA461B19A2285A014/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_2-1652198082442.png" alt="isgnr_2-1652198082442.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is part of my code :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "" 
    options(sheet_interval='none' embedded_titles='yes') ; 

ods escapechar = '^'  ;
options missing = 0 orientation=landscape center ; 

proc report data = a split = '-' 
                                style(header)={background=white borderwidth=1 bordercolor=black width=150 color=black just=c textalign=c} 
                                style(report)={borderwidth=1 bordercolor=black just=c}
                                style(column)= {borderwidth=1 bordercolor=black just=r color=black tagattr='format:###,###,###,###,###0'}
                                style(summary)= [just=c textalign=c];
;

column ( '^{style[color=red]Total}'  ('Category (before change/extension) - Performing time'
        var1 var2 var3 );

define var1 / group; 
define var2 / analysis sum ; 
define var3 / analysis sum ; 

run ; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2022 15:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812445#M40651</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-10T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812534#M40652</link>
      <description>&lt;P&gt;Adding these three styles .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "c:\temp\temp.xlsx" 
    options(sheet_interval='none' embedded_titles='yes') ; 

ods escapechar = '^'  ;
options missing = 0 orientation=landscape center ; 

proc report data =sashelp.class nowd split = '-' 
                                style(header)={&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;tagattr="wrap:no" vjust=m asis=on&lt;/FONT&gt;&lt;/STRONG&gt; background=white borderwidth=1 bordercolor=black width=150 color=black just=c textalign=c} 
                                style(report)={borderwidth=1 bordercolor=black just=c}
                                style(column)= {borderwidth=1 bordercolor=black just=r color=black tagattr='format:###,###,###,###,###0'}
                                style(summary)= [just=c textalign=c];
;

column ( '^{style[color=red]Total}'  ('Category (before change/extension) - Performing time'
        sex weight height ));

define sex / group; 
define weight / analysis sum ; 
define height / analysis sum ; 

run ; 

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652240567524.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71292i5A2CD58392D7A031/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652240567524.png" alt="Ksharp_0-1652240567524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 03:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812534#M40652</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-11T03:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812535#M40653</link>
      <description>tagattr="wrap:no" vjust=m asis=on</description>
      <pubDate>Wed, 11 May 2022 03:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812535#M40653</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-11T03:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812564#M40654</link>
      <description>Thank you, really close to what i want. Is it possible to put 'Performing time' under 'Category(before change/extension)' ?</description>
      <pubDate>Wed, 11 May 2022 08:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812564#M40654</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-11T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812578#M40656</link>
      <description>&lt;P&gt;Ha. That is really uneasy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "c:\temp\temp.xlsx" 
    options(sheet_interval='none' embedded_titles='yes') ; 

ods escapechar = '^'  ;
options missing = 0 orientation=landscape center ; 

proc report data =sashelp.class nowd split = '-' 
                                style(header)={tagattr="wrap:no" background=white 
bordertopwidth=1 bordercolor=black 
borderrightwidth=1 borderrightcolor=black 
color=black just=c textalign=c} 
                                style(report)={borderwidth=1 bordercolor=black just=c}
                                style(column)= {borderwidth=1 bordercolor=black just=r color=black tagattr='format:###,###,###,###,###0'}
                                style(summary)= [just=c textalign=c];
;

column ( '^{style[color=red]Total}'  
       ('^{style[borderwidth=1 bordercolor=white] Category (before change/extension)' 
       ( '^{style[borderwidth=1 bordercolor=white] Performingtime'
        sex weight height )));

define sex / group; 
define weight / analysis sum ; 
define height / analysis sum ; 
run ; 

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652262940272.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71297i636999203CF4BC86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652262940272.png" alt="Ksharp_0-1652262940272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/812578#M40656</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-11T09:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Exporting with ODS EXCEL changes format of text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/814436#M40710</link>
      <description>&lt;P&gt;I just learn this option :&amp;nbsp; flow="tables"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "c:\temp\temp.xlsx" 
    options(sheet_interval='none' embedded_titles='yes' &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;flow="tables"&lt;/STRONG&gt;&lt;/FONT&gt;) ; 

ods escapechar = '^'  ;
options missing = 0 orientation=landscape center ; 

proc report data =sashelp.class nowd split = '-' 
                                style(header)={tagattr="wrap:no" background=white 
bordertopwidth=1 bordercolor=black 
borderrightwidth=1 borderrightcolor=black 
color=black just=c textalign=c} 
                                style(report)={borderwidth=1 bordercolor=black just=c}
                                style(column)= {borderwidth=1 bordercolor=black just=r color=black tagattr='format:###,###,###,###,###0'}
                                style(summary)= [just=c textalign=c];
;

column ( '^{style[color=red]Total}'  
       ('^{style[borderwidth=1 bordercolor=white ] Category (before change/extension) -  Performingtime'
        sex weight height ) );

define sex / group ; 
define weight / analysis sum ; 
define height / analysis sum ; 
run ; 

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1653054934258.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71663i793AF1530712A6DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1653054934258.png" alt="Ksharp_0-1653054934258.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-Exporting-with-ODS-EXCEL-changes-format-of-text/m-p/814436#M40710</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-20T13:55:56Z</dc:date>
    </item>
  </channel>
</rss>

