<?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 ODS Excel destination. Proc report  headers ignoring split characters after using ^{sub xxx} in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525877#M22145</link>
    <description>&lt;P&gt;A simplified version of my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Escapechar&amp;nbsp;is ^ */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel options (sheet_name="&amp;amp;table" sheet_interval="none" embedded_titles='yes');&lt;BR /&gt;title1 "&amp;amp;title";&lt;BR /&gt;proc report data=pk3 nowd missing split='@';&lt;BR /&gt;col subjectid ('Nominal time post-dose (h)' tp0 'tp0.5'n tp1 tp2 tp3 tp4 tp5 tp8) result_min result_max t_max auc_sum;&lt;BR /&gt;define subjectid / 'Subject ID' order;&lt;BR /&gt;define result_min / "C^{sub min}@(ng/mL)";&lt;BR /&gt;define result_max / "C^{sub max}@(ng/mL)";&lt;BR /&gt;define t_max / "t^{sub max}@(h)";&lt;BR /&gt;define auc_sum / "AUC^{sub 0-8}@(h&amp;amp;dot.ng/mL)";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The header in the output shows:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject ID&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;Cmin(ng/mL)&lt;/TD&gt;&lt;TD&gt;Cmax(ng/mL)&lt;/TD&gt;&lt;TD&gt;tmax(h)&lt;/TD&gt;&lt;TD&gt;AUC0-8(h▪ng/mL)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Split character is being ignored. I have seen in the post below that this is a known issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326/highlight/true#M17722" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326/highlight/true#M17722&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a work around? I've tried ^{newline}, inserting '0A'x to no avail. Is there RAW code as in RTF that I could insert for Excel to render?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce Kayton&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 22:08:00 GMT</pubDate>
    <dc:creator>BruceKayton</dc:creator>
    <dc:date>2019-01-09T22:08:00Z</dc:date>
    <item>
      <title>ODS Excel destination. Proc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525877#M22145</link>
      <description>&lt;P&gt;A simplified version of my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Escapechar&amp;nbsp;is ^ */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel options (sheet_name="&amp;amp;table" sheet_interval="none" embedded_titles='yes');&lt;BR /&gt;title1 "&amp;amp;title";&lt;BR /&gt;proc report data=pk3 nowd missing split='@';&lt;BR /&gt;col subjectid ('Nominal time post-dose (h)' tp0 'tp0.5'n tp1 tp2 tp3 tp4 tp5 tp8) result_min result_max t_max auc_sum;&lt;BR /&gt;define subjectid / 'Subject ID' order;&lt;BR /&gt;define result_min / "C^{sub min}@(ng/mL)";&lt;BR /&gt;define result_max / "C^{sub max}@(ng/mL)";&lt;BR /&gt;define t_max / "t^{sub max}@(h)";&lt;BR /&gt;define auc_sum / "AUC^{sub 0-8}@(h&amp;amp;dot.ng/mL)";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The header in the output shows:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject ID&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;Cmin(ng/mL)&lt;/TD&gt;&lt;TD&gt;Cmax(ng/mL)&lt;/TD&gt;&lt;TD&gt;tmax(h)&lt;/TD&gt;&lt;TD&gt;AUC0-8(h▪ng/mL)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Split character is being ignored. I have seen in the post below that this is a known issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326/highlight/true#M17722" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Line-not-wrapping-in-ODS-Excel/m-p/324326/highlight/true#M17722&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a work around? I've tried ^{newline}, inserting '0A'x to no avail. Is there RAW code as in RTF that I could insert for Excel to render?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce Kayton&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 22:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525877#M22145</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-09T22:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525895#M22146</link>
      <description>Since this is one of the newer features, I suspect your SAS version will be important. What version of SAS are you using? You can find out by using the following code, the output is in the log.&lt;BR /&gt;&lt;BR /&gt;proc product_status;run;</description>
      <pubDate>Wed, 09 Jan 2019 21:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525895#M22146</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-09T21:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525901#M22147</link>
      <description>&lt;P&gt;Will the values under the column work if you specify a width for the column heading that forces a wrap (may want FLOW in the define). You might need one or two spaces instead of your split character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps instead of the SUB you might be able to create similar text with Unicode characters.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 21:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525901#M22147</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-09T21:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525927#M22149</link>
      <description>&lt;P&gt;Version is&amp;nbsp;9.4_M3, but that is irrelevant. If I use the RTF destination it works just fine, output is required in Excel. ExcelXP tagset works too, but I lose some other features with that. Definitely an ODS Excel destination issue.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 22:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525927#M22149</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-09T22:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525928#M22150</link>
      <description>ODS EXCEL was implemented only as production in 9.4M3 and it has some bugs still in that version. 9.4M5, is more stable. This type of behaviour can also be destination dependent because different file types use a different method to specify a new line or subscript, so there are definitely variations in the output across different destination types. &lt;BR /&gt;&lt;BR /&gt;If you can provide some sample data I can test your code on SAS 9.4 TSM5 to see if it's fixed or not.</description>
      <pubDate>Wed, 09 Jan 2019 22:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/525928#M22150</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-09T22:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526128#M22154</link>
      <description>&lt;P&gt;Tried those. none of those work. FLOW really only applies to the column content, not the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 17:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526128#M22154</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-10T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526229#M22158</link>
      <description>&lt;P&gt;I'm using SAS University Edition, running SAS 9.4M6.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The split character works, but you need to make sure there's a space before it.&amp;nbsp; See the example code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';

%let dot=^{unicode 2022};

ods excel file="/folders/myfolders/ODS Excel examples/split_characters_PROC_REPORT.xlsx";

* need to have space before split character below.  does not work as expected
* if you do NOT include the space! ;

proc report data=sashelp.class nowd missing split='@';
  col name age height sex weight;
  define name / 'Subject@ID' order;
  define age / "C^{sub min} @(ng/ml)";
  define height / "C^{sub max} @(ng/ml)";
  define sex / "t^{sub max} @(ng/ml)";
  define weight / "AUC^{sub 0-8} @(h&amp;amp;dot.ng/ml)";
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Need a blank before the split character in PROC REPORT with ODS Excel destination if also using other techniques" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26182i790D09B21010AED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="split_character_PROC_REPORT_ODS_Excel.jpg" alt="Need a blank before the split character in PROC REPORT with ODS Excel destination if also using other techniques" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Need a blank before the split character in PROC REPORT with ODS Excel destination if also using other techniques&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Edited to add:&amp;nbsp; &lt;A href="https://support.sas.com/resources/papers/proceedings17/0973-2017.pdf" target="_blank"&gt;ODS TAGSETS.EXCELXP and ODS EXCEL SHOWDOWN&lt;/A&gt; was the first result I got when searching on "sas ods excel destination split character".&amp;nbsp; The examples in that paper show the split character with regular text.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 22:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526229#M22158</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2019-01-10T22:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526252#M22161</link>
      <description>&lt;P&gt;Must be version related then, because that still doesn't work for me. I'm running SAS 9.4M3&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 01:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526252#M22161</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-11T01:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526253#M22162</link>
      <description>&lt;P&gt;Appears it is fixed after SAS 9.4M3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 01:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526253#M22162</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-11T01:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel destination. Preoc report  headers ignoring split characters after using ^{sub xxx}</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526254#M22163</link>
      <description>&lt;P&gt;Thanks everyone for the feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 01:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-destination-Proc-report-headers-ignoring-split/m-p/526254#M22163</guid>
      <dc:creator>BruceKayton</dc:creator>
      <dc:date>2019-01-11T01:40:13Z</dc:date>
    </item>
  </channel>
</rss>

