The SAS Output Delivery System and reporting techniques

XML created by ods tagset excelxp cannot be loaded in excel 2010

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 18
Accepted Solution

XML created by ods tagset excelxp cannot be loaded in excel 2010


Hi all,

I am no longer able to create working multi-worksheet xml files with ods tagset excelxp.

The following program creates an xml, which cannot be opened in excel 2010:

einzel '\\c04-fs1.hestala.de\Abt_1\Ref_A\HEPAS\_SAS-Projekte\Tabelle aus Einzeldaten';

tagsets.excelxp close;

tagsets.excelxp file="\\c04-fs1.hestala.de\Abt_1\Ref_c\Sas\test1.xml" style=styles.sasweb;

tabulate data=sashelp.class;

class age sex;

var height;

table age, sex, height;

where age > 14;

;

tagsets.excelxp close;

I am including the created xml.

Any suggestions would be helpful.

Christa



Accepted Solutions
Solution
‎03-18-2013 02:58 PM
SAS Super FREQ
Posts: 8,818

Re: XML created by ods tagset excelxp cannot be loaded in excel 2010

Hi:

  There is a known issue with PROC TABULATE and TAGSETS.EXCELXP in SAS 9.3, as described here:

45306 - Specifying a page dimension with PROC TABULATE and the ExcelXP tagset generates an invalid X...

  I do not know for sure whether the problem existed in 9.2 or not. The Tech Support note has a possible workaround. For more direct help on this issue, you might want to open a track with SAS Tech Support.

cynthia

View solution in original post


All Replies
Super User
Posts: 19,051

Re: XML created by ods tagset excelxp cannot be loaded in excel 2010

In my testing using v1.127 of the tagsets and SAS 9.2

1. If I run your code straight it doesn't work.

2. If I run your code with a .xls extension it works, but not correctly (see #3). Perhaps there's an issue of extension mapping, are XML sets to be opened by Excel by default?

3. The multiple comma's in the table statement seems to confuse tagsets, and I've heard of this before.  If you run simpler tables things seem to work.

Not sure if that helps, but hopefully points you to some workarounds.

Solution
‎03-18-2013 02:58 PM
SAS Super FREQ
Posts: 8,818

Re: XML created by ods tagset excelxp cannot be loaded in excel 2010

Hi:

  There is a known issue with PROC TABULATE and TAGSETS.EXCELXP in SAS 9.3, as described here:

45306 - Specifying a page dimension with PROC TABULATE and the ExcelXP tagset generates an invalid X...

  I do not know for sure whether the problem existed in 9.2 or not. The Tech Support note has a possible workaround. For more direct help on this issue, you might want to open a track with SAS Tech Support.

cynthia

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 386 views
  • 0 likes
  • 3 in conversation