BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JianShen
Obsidian | Level 7

Hi all,

 

I have a question regarding titles in ODS tagsets.excelxp. In my department, we want to export multiple tables to excel. Because we have over 10 tables with different lay-outs and titles, we first create the tables. Then we use %include in combination with ODS to export the tables. To give a short overview, the programs use the following format

 

program1:

 

title1 "this is a title";

proc report;

column var1

define column1 / group;

rbreak after / summarize;

run;

title;

 

program2:

ods tagsets.excelxp path="c:\reports\" file="new_file.xml" options(sheet_interval="PROC");

%include "c:\&path_to_program\program1.sas";

ods tagsets.excelxp close;

 

The programs are mostly doing what is expected, except for the title. It seems like ODS isn't adding the title we have in program 1 to the output. We already tried using both embed_titles=yes and embed_titles_once=yes, but the title still doesn't show up. Therefore, we're wondering if we are missing something or if we have to add the titles in ODS itself, rather than the %include program1.

 

Any tips or suggestions would be greatly helpful!

1 ACCEPTED SOLUTION

Accepted Solutions
JianShen
Obsidian | Level 7

I figured out it was us using the wrong name for the embed option. We kept using embed_titles='yes' instead of embedded_titles='yes'.

View solution in original post

1 REPLY 1
JianShen
Obsidian | Level 7

I figured out it was us using the wrong name for the embed option. We kept using embed_titles='yes' instead of embedded_titles='yes'.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1485 views
  • 0 likes
  • 1 in conversation