Hello,
I wanted to export a SAS table to xlsx and define it inside a table.
In xlsx it would be defined here:
Thanks
Luca
Not sure what you are asking for.
You can export a dataset to SHEET in an XLSX workbook. Either adding or replacing a sheet in an existing workbook, or creating a new workbook.
You can also create a sheet in an XLS workbook but why would anyone use that ancient proprietary format instead of the modern public format of an XLSS workbook.
This feature of creating Excel table is not available in SAS .
One can export a SAS table to an excel sheet or range, but cannot create excel table using SAS code.
You can use ODS Excel to output SAS dataset in xlsx format. You can add multiple sheets and also add more than 1 SAS dataset to 1 sheet.
If you don't need to add multiple tables to 1 sheet PROC Export can also be used.
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.