Hello
The foillowing code create 2 sheets.
In sheet1 there are 2 tables.
In sheet2 there are 2 tables.
My question is why the titles are not printed out in the excel XLS file?
Title;
ods tagsets.excelxp file="path/test.xls" style=minimal
options(sheet_interval="none" sheet_name='Ron1');
proc print data=sashelp.class(obs=5)noobs;
Title 'Sheet1-table1';
run;
proc print data=sashelp.air(obs=5) noobs;
Title 'Sheet1-table2';
run;
ods tagsets.excelxp options(sheet_interval="table");
ods tagsets.excelxp options(sheet_interval="none" sheet_name='Ron2');
proc print data=sashelp.orsales(obs=5)noobs;
Title 'Sheet2-table1';
run;
proc print data=sashelp.prdsale(obs=5)noobs;
Title 'Sheet2-table2';
run;
ods tagsets.excelxp close;
Titles in tagsets.ecelxp will only be visible in the printed output (look at the print preview).
If you want to see them in the worksheets, use the embedded_titles='yes' option.
The titles should be in the xls/xml file, have a look at the print preview! If you want them embedded in the worksheets, you have to use the option embedded_titles='yes'.
@andreas_lds wrote:
The titles should be in the xls/xml file, have a look at the print preview! If you want them embedded in the worksheets, you have to use the option embedded_titles='yes'.
You beat me to it while I was still following Maxim 6 😉
Titles in tagsets.ecelxp will only be visible in the printed output (look at the print preview).
If you want to see them in the worksheets, use the embedded_titles='yes' option.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.