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'.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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