Hi:
At this point, I would recommend that you work with Tech Support.
In all instances of running TAGSETS.EXCELXP and using Excel 2007 to open the file I am able to have Excel open the file when I click YES in response to that message -- using your code. When Excel opens, I have 6 worksheets, one for each AGE.
The XML that you see in the file is CORRECT -- TAGSETS.EXCELXP creates Spreadsheet Markup Language XML as defined by Microsoft for Office 2003. Excel 2007 should open the TAGSETS.EXCELXP XML file (even with a .XML extension). Did you open the file in the browser, in Notepad or with a lower version of Excel (such as Excel 2000)???
Usually, the only time I have issues with the Excel and the XML created by TAGSETS.EXCELXP is one of these circumstances:
1) try to name the file .XLSX
OR
2) perform something in the SAS code that causes the XML to be invalid (like using embedded_title with a version of the tagset that didn't support embedded_titles) -- which doesn't seem to be the case in your code
OR
3) Use EG and try to open the XML file with EG -- the file is OK -- but Enterprise Guide only "wants' to open SASReport XML -- not Spreadsheet XML
OR
4) Use SAS 9.1.3 and have an older version of the tagset template (very similar to #2)
OR
5) Use Office 97 or Office 2000 and try to open the file (since Spreadsheet XML was designed for Office 2002/2003, Excel 97 and 2000 will not open the XML file into a spreadsheet.
To open a track with Tech Support, fill out the form at this link:
http://support.sas.com/ctx/supportform/createForm
cynthia