Hi:
If you create an HTML file with multiple queries or multiple procedures' output and then open that HTML file in Excel, by design (Microsoft), a single HTML file represents a single Worksheet in an Excel Workbook. That makes sense, actually, (as inconvenient as it is) because a single HTML page on the web can be composed of multiple tables ... and just like the browser shows you all the tables that are in a single HTML page, Excel shows you all the tables in one Excel Worksheet in the Workbook....when you create and open HTML files with Excel. Rather than redesign the fundamental workings of HTML, Microsoft came up with Spreadsheet Markup Language XML -- which allows an XML description of multiple sheets to be rendered by Excel as you would expect.
That's one of the reasons that Microsoft came up with the Spreadsheet Markup Language specification -- because folks wanted a way to open a file (XML) and have Excel render the XML file as multiple sheets in one workbook. Since SAS can create CSV and HTML and Spreadsheet ML, you have the ability to decide which kind of file you want to create with SAS and ODS. Once the BI Platform and the SAS Add-In come into the mix, then you must play by the rules of the SAS Add-In, which can only receive CSV, HTML or SASReport XML results from an SP.
SASReport XML is NOT the same thing as Microsoft's Spreadsheet ML. SASReport XML does not have a way to automatically create multiple worksheets. That's why you must use the SPWA or the Portal to execute SPs that might use TAGSETS.EXCELXP -- web-based methods of executing a SP are not bound to fixed result types because you can precede your streaming output with a content-type header that informs the client system what application should be used to open and render the content.
If you remember how the SAS Add-In for Microsoft Office works, when you run a SP in Excel, it prompts you for where you want to insert the SP results -- in the current worksheet or in a new sheet or in a new workbook. This is part of the internal workings of the Add-In. In the SP class, we recommend that you either run 3 SPs -- each one to populate a separate sheet or that you run the same SP 3 times ( possibly with different parameter choices each time) and then at the prompt, choose to put each SP results in a different sheet.
If you decide that you want/need the features of TAGSETS.EXCELXP, such as creating multiple worksheets in one workbook automatically, using a Stored Process, then you cannot execute that SP via the SAS Add-In. The SAS Add-In for Microsoft Office, when used in Excel, does not "accept" or "render" TAGSETS.EXCELXP form of XML.
To use TAGSETS.EXCELXP, you would have to execute your SP through the Portal or the SPWA (Stored Process Web Application). Here are some previous forum postings on this topic:
http://support.sas.com/forums/thread.jspa?messageID=6617᧙
http://support.sas.com/forums/thread.jspa?messageID=12735ㆿ
http://support.sas.com/forums/thread.jspa?messageID=9596╼
http://support.sas.com/forums/thread.jspa?messageID=11407ⲏ
cynthia