<?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: ExcelXP, Tagattr and mergeAcross in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/418172#M19945</link>
    <description>&lt;P&gt;I've run into this issue once more and this time I had a little more time to understand the tagset code.&amp;nbsp; As I put in my post all that time ago the issue is with the ss:Index values when merging cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a trivial example :&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
  columns make model;
  define make / style={tagattr="mergeacross:1"};
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generates XML like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="18"&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:MergeAcross="1" ss:Index="1"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Make&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:Index="2"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Model&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which Excel 2010 refuses to open claiming it's a corrupt file.&amp;nbsp; (I'm sure earlier Excel was more helpful and indicated which element in the XML it had an issue with).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a modified version of the tagset which correctly counts the columns when using mergeacross and outputs appropriate ss:Index values.&amp;nbsp; So the same code generates XML like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="18"&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:MergeAcross="1" ss:Index="1"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Make&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:Index="3"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Model&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which loads into Excel 2010 correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The amendments made to the SAS issued version 1.131&amp;nbsp;are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In event Row start, initialise a counter for merged columns (and unset in Row end)&lt;/P&gt;&lt;P&gt;In event mergeAcross, maintain the count of merged columns&lt;/P&gt;&lt;P&gt;In event cellStart, calculate a new value for ss:Index using the additional information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there may be more needed in mergeAcross to make this fix applicable for all uses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full modified tagset is attached.&amp;nbsp; I've called this v1.131.1 and referenced this forum message thread in the changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great if someone in SAS could take a look and use this as a base to issue a fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 15:08:23 GMT</pubDate>
    <dc:creator>JonathanWill</dc:creator>
    <dc:date>2017-12-04T15:08:23Z</dc:date>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44732#M5910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the tagattr mergeAcross style on a field that isn't the last field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works if its the last field, but I want it to be the middle field...is there a way to get this to work? I keep getting an XML error in the file, but I could be missing something.&lt;/P&gt;&lt;P&gt;If I print just model and comment ou the make and type columns it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I'd like to print the first table with a filed that merged across and the second table below without the field merged across, to fit things on the table and have it look nice as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="C:\temp\example6.xls" style=journal options(sheet_interval='none' embedded_titles='yes');&lt;/P&gt;&lt;P&gt;title ;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars (obs=100) nowd;&lt;/P&gt;&lt;P&gt;columns model make type;&lt;/P&gt;&lt;P&gt;define model / 'Name' style={tagattr="mergeAcross:yes"};&lt;/P&gt;&lt;P&gt;define make/display;&lt;/P&gt;&lt;P&gt;define type/display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*proc freq data=sashelp.class;*/&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; tables age;*/&lt;/P&gt;&lt;P&gt;/*run;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 21:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44732#M5910</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-09T21:55:03Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44733#M5911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; have you looked (in notepad) at how much difference there is between the required result saved in excel as xml format and the output from your example6 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 22:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44733#M5911</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-11-09T22:43:38Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44734#M5912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; lifted from the options( doc='help') &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;lt;mergeacross: &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;yes&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;No&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;/number&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MergeAcross is to force &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; cell to merge across the current &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; of the &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: teal; font-size: 9pt;"&gt;worksheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; number will cause the cell to merge across that many &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: teal; font-size: 9pt;"&gt;columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; try&lt;/P&gt;&lt;P&gt;define model / 'Name' style={tagattr="mergeAcross:2"};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 22:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44734#M5912</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-11-09T22:55:50Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44735#M5913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I wouldn't know what to look for in the XML file &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll tried creating a sample in Excel and looking for similarities in the file but nothing jumps out at me.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 23:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44735#M5913</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-09T23:17:52Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44736#M5914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, but that doesn't work either &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 23:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44736#M5914</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-09T23:18:37Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44737#M5915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:smileyinfo:&lt;/P&gt;&lt;P&gt;running in SAS9.3 dosen't solve it. &lt;/P&gt;&lt;P&gt;The error log from excel shows many repetitions of the text&lt;/P&gt;&lt;P&gt;XML ERROR in Table&lt;/P&gt;&lt;P&gt;REASON: Bad Value&lt;/P&gt;&lt;P&gt;FILE: C:\temp\example6.xls&lt;/P&gt;&lt;P&gt;GROUP: Row&lt;/P&gt;&lt;P&gt;TAG: Cell&lt;/P&gt;&lt;P&gt;ATTRIB: Index&lt;/P&gt;&lt;P&gt;VALUE: 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML ERROR in Table&lt;/P&gt;&lt;P&gt;REASON: Bad Value&lt;/P&gt;&lt;P&gt;FILE: C:\temp\example6.xls&lt;/P&gt;&lt;P&gt;GROUP: Row&lt;/P&gt;&lt;P&gt;TAG: Cell&lt;/P&gt;&lt;P&gt;ATTRIB: Index&lt;/P&gt;&lt;P&gt;VALUE: 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 23:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44737#M5915</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-11-09T23:52:45Z</dc:date>
    </item>
    <item>
      <title>ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44738#M5916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, same thing in my log. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening a ticket with Tech Support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 00:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44738#M5916</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-10T00:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44739#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get anywhere with Tech Support? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the problem in the XML:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the cells are written into the XML they are assigned sequential index numbers, but when you use the mergeacross option Excel expects the cells that are being merge to be ommitted from the sequence.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. in a 3 column table the cells are defined as &lt;/P&gt;&lt;P&gt;&amp;lt;cell ss:Index="1"&amp;gt;&amp;lt;/cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cell ss:Index="2"&amp;gt;&amp;lt;/cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cell ss:Index="3"&amp;gt;&amp;lt;/cell&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if merge across is set on col 1 then col 2 should be omitted to give:&lt;/P&gt;&lt;P&gt;&amp;lt;cell ss:Index="1" ss:MergeAcross="1"&amp;gt;&amp;lt;/cell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cell ss:Index="3"&amp;gt;&amp;lt;/cell&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the XML created by SAS the cell with index 2 is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we need is some way of getting the tagset to not output columns that are 'underneath' the merged across cell.&amp;nbsp; I've tried to fool sas with columns defined with noprint in proc report, but it kindly shuffles everything along.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 10:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44739#M5917</guid>
      <dc:creator>JonWilliamson</dc:creator>
      <dc:date>2012-07-06T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44740#M5918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; See the attached screenshot. You can make the string "Name" span all 3 columns in the report by using regular spanning in the COLUMN statement. Screenshot produced with code below/code run in SAS 9.3, output opened with Excel 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file="C:\temp\example6.xml" &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=journal options(sheet_interval='none' embedded_titles='yes');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title ;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.cars (obs=100) nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;columns ("Name" model make type);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define model / 'Model' ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define make/display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define type/display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11279iE78F780C4FE038E5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="header_spanning_report.png" title="header_spanning_report.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 14:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44740#M5918</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-06T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44741#M5919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Did you ever get an answer from tech support? As I would like this functionality.&lt;/P&gt;&lt;P&gt;Ron. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44741#M5919</guid>
      <dc:creator>manleyr</dc:creator>
      <dc:date>2012-10-11T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44742#M5920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, basically it doesn't work as expected so don't use it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/44742#M5920</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-10-11T19:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP, Tagattr and mergeAcross</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/418172#M19945</link>
      <description>&lt;P&gt;I've run into this issue once more and this time I had a little more time to understand the tagset code.&amp;nbsp; As I put in my post all that time ago the issue is with the ss:Index values when merging cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a trivial example :&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
  columns make model;
  define make / style={tagattr="mergeacross:1"};
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generates XML like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="18"&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:MergeAcross="1" ss:Index="1"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Make&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:Index="2"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Model&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which Excel 2010 refuses to open claiming it's a corrupt file.&amp;nbsp; (I'm sure earlier Excel was more helpful and indicated which element in the XML it had an issue with).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a modified version of the tagset which correctly counts the columns when using mergeacross and outputs appropriate ss:Index values.&amp;nbsp; So the same code generates XML like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="18"&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:MergeAcross="1" ss:Index="1"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Make&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
  &amp;lt;Cell ss:StyleID="header__c" ss:Index="3"&amp;gt;
    &amp;lt;Data ss:Type="String"&amp;gt;Model&amp;lt;/Data&amp;gt;
  &amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which loads into Excel 2010 correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The amendments made to the SAS issued version 1.131&amp;nbsp;are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In event Row start, initialise a counter for merged columns (and unset in Row end)&lt;/P&gt;&lt;P&gt;In event mergeAcross, maintain the count of merged columns&lt;/P&gt;&lt;P&gt;In event cellStart, calculate a new value for ss:Index using the additional information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there may be more needed in mergeAcross to make this fix applicable for all uses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full modified tagset is attached.&amp;nbsp; I've called this v1.131.1 and referenced this forum message thread in the changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great if someone in SAS could take a look and use this as a base to issue a fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 15:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagattr-and-mergeAcross/m-p/418172#M19945</guid>
      <dc:creator>JonathanWill</dc:creator>
      <dc:date>2017-12-04T15:08:23Z</dc:date>
    </item>
  </channel>
</rss>

