<?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: Line not wrapping in ODS Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326#M17722</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt; I understand the problem better. The split character and newline do work by themselves. But if you have a superscript function WITH a split character or newline, then the header is broken in ODS Excel. My understanding is that this is a defect that is being worked on, so there isn't a "fix" yet. You'd need to work with Tech Support to find out the anticipated date for any fix -- or switch to a different destination, where the split and superscript will work. (screen shot below shows that split is "broken" when superscript is used.&lt;BR /&gt; &lt;BR /&gt;cynthia&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6682i6F1B84849D5D6164/image-size/original?v=v2&amp;amp;px=-1" alt="super_split.png" title="super_split.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 16:46:07 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-01-12T16:46:07Z</dc:date>
    <item>
      <title>Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323699#M17705</link>
      <description>&lt;P&gt;&amp;nbsp; I am trying to create an Excel file using Proc Report and ODS Excel with a column heading that has both a line break and a superscript (column VALUE2).&amp;nbsp; The issue is the line break is being ignored in Excel, but it works properly in HTML (SAS Output window).&amp;nbsp; My output needs to be an Excel file because it eventually is being converted to a PDF (and the specialized process needs Excel as input).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using two line breaks works fine&lt;/P&gt;&lt;P&gt;Using two superscript notations works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Below is a stripped down/simplified version of the program I am trying to run.&amp;nbsp; I have tried running this in SAS 9.2 and 9.4 with similar results.&amp;nbsp; Any help on how to make both notations work together would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ata mytable;
 realrow = '01';
 value1 = 34;
 value2 = 19;
 output;
 realrow = '01';
 value1 = 12;
 value2 = 55;
 output;
 run;

proc format;
 value $ tab12fmt
   '01' = 'Total, all items';
run;

ods excel file="H:\mytab.xlsx";

options missing='' nodate;
ods escapechar='~';

title "My Table 1";
proc report data=mytable missing;
 label value1 = 'Amount~n(thousands of~ndollars)'
       value2 = "Average per~nangler(dollars)~{super 2}";
 column realrow value1 value2;
 define realrow /  format=$tab12fmt. ;
 define value1 /   style(header)=[just=r]
                       style(column)=[borderrightcolor=white
                      borderrightwidth=0];
 define value2 / style(header)=[just=r] 
                      style(column)=[borderleftcolor=white 
                      borderleftwidth=0 borderrightcolor=white
                      borderrightwidth=0];
 compute realrow;
   call define(_row_,'style','style=[bordertopcolor=white bordertopwidth=0
                     borderbottomcolor=white borderbottomwidth=0
                     font_weight=bold]');

 endcomp;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323699#M17705</guid>
      <dc:creator>FiggyScott</dc:creator>
      <dc:date>2017-01-10T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323712#M17706</link>
      <description>&lt;P&gt;Why not go directly to PDF (or to RTF then PDF)? &amp;nbsp;It will make your life far simpler in the long run. &amp;nbsp;As for line splits and such like, its a real pain, Excel doesn't have a newline option (~n), you would need to insert the ASCII character which represents the Alt + Enter you get if typing directly in Excel. &amp;nbsp;As noted though, Excel isn't really a good tool for reports.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323712#M17706</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-10T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323840#M17709</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;These worked for me

Using a split character  
proc report data=mytable missing split='#';
 label value1 = 'Amount#(thousands of~ndollars)'
       value2 = "Average per#angler(dollars)~{super 2}";

OR

proc report data=mytable missing;
 label value1 = 'Amount~{newline}(thousands of~ndollars)'
       value2 = "Average per~{newline}angler(dollars)~{super 2}";

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jan 2017 01:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/323840#M17709</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-01-11T01:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324033#M17717</link>
      <description>&lt;P&gt;RW9 - As I mentioned, where I work there is a specialized procedure/process that converts Excel into PDFs, adding a variety of additional formatting codes I don't want to have to deal with inserting myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger - Neither of those solutions work for me (and I believe ~{newline} is the same thing as ~n).&amp;nbsp; At this point I have to assume the issue is either the versions of the software I am using or a patch (or lack of) that is contributing to my difficulties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for your help though.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 19:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324033#M17717</guid>
      <dc:creator>FiggyScott</dc:creator>
      <dc:date>2017-01-11T19:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324223#M17721</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I guess I'm confused. Both the SPLIT= option in PROC REPORT and the NEWLINE function in ESCAPECHAR work for me. I am opening the Excel output with Excel/Office 2013 and opening the HTML in a browser. In my output, Excel respects both of these techniques (see below)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6681iC293E40F818230F6/image-size/original?v=v2&amp;amp;px=-1" alt="newline_split.png" title="newline_split.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 12:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324223#M17721</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-12T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326#M17722</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; I understand the problem better. The split character and newline do work by themselves. But if you have a superscript function WITH a split character or newline, then the header is broken in ODS Excel. My understanding is that this is a defect that is being worked on, so there isn't a "fix" yet. You'd need to work with Tech Support to find out the anticipated date for any fix -- or switch to a different destination, where the split and superscript will work. (screen shot below shows that split is "broken" when superscript is used.&lt;BR /&gt; &lt;BR /&gt;cynthia&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6682i6F1B84849D5D6164/image-size/original?v=v2&amp;amp;px=-1" alt="super_split.png" title="super_split.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326#M17722</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-12T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line not wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/325262#M17743</link>
      <description>&lt;P&gt;Cynthia -&amp;nbsp; Thanks for your reply. I had a feeling the problem was a failure of the ODS Excel coding/functionality.&amp;nbsp; There may be at least one work around, otherwise we will have to revert to using the old process for creating our tables.&amp;nbsp; I had been hoping to speed up the process with coding the entire table myself.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/325262#M17743</guid>
      <dc:creator>FiggyScott</dc:creator>
      <dc:date>2017-01-17T12:59:58Z</dc:date>
    </item>
  </channel>
</rss>

