Please show at least the ODS statement creating your files. Since the tagset I think you meant to use is tagsets.excelxp not "xltagsets" I suspect you may be using the wrong ODS statement. Better would be to show a log for one of these "reports".
Also what feature of XML do you need that means you aren't using ODS EXCEL if you want to open files in Excel?
Check the SAS log and make sure the PROC PRINT actually printed something.
When no output is written between the opening and closing the ODS destination the resulting file is left in an invalid state. Instead of EXCEL saying the file is empty it gives a strange error message.
Not writing any output would not cause an error in the SAS log.
Are you sure the steps you ran produced output?
Depending on what steps you ran you might have also used NOPRINT option.
The other possibility is the content is somehow confusing the XML. What type of text is the report generating? Perhaps you can use a binary search to isolate some problem text in the data. What happens if you ask it to produce only half of the output? Does it then work? If so try producing the other half and see that causes trouble. Repeat until problem data is isolated.
Hello @Kayalvizhi
Ods tagsets.excelxp creates xml files and these are typically saved as .xls.
When Microsoft Excel reads these files, it gives warnings.
To avoid this you have two options
1) use the xls2xlxs.vbs script (43496 - Convert files created using an ODS destination to native Microsoft Excel files)
2) A better option is to use ods Excel rather than tagset excelxp.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.