BookmarkSubscribeRSS Feed
clear6690
Calcite | Level 5

Hi,

I have a question about using tagsets.excelxp to export with titles embedded.

For example, I have a ten column table on the first worksheet and a two column table on the second worksheet. The first title works perfectly fine on the first worksheet but the second title will be centered based on ten columns instead of two columns.

Anyone can help with that?

Here is my code.

data first;

input a b c d e f g h i j;

cards;

1 1 1 1 1 1 1 1 1 1

;

run;

data second;

input a b;

cards;

1 1

;

run;

ODS TAGSETS.EXCELXP

file="path"

STYLE=journal;

ODS TAGSETS.EXCELXP

OPTIONS (sheet_name='first'

Embedded_Titles = 'yes');

proc print data=first noobs label;

var a b c d e f g h i j;

title1 'This is the title for dataset: First';

run;

ODS TAGSETS.EXCELXP

OPTIONS (sheet_name='Second'

Embedded_Titles = 'yes');

proc print data=second noobs label;

var a b;

title1 'This is the title for dataset: Second';

run;

ods tagsets.excelxp close;

1 REPLY 1
Chevell_sas
SAS Employee

The issue with the titles getting centered based on the number of columns from the first sheet was an issue that was corrected with version 1.131 of the tagset which can be downloaded from the below location.

 

http://support.sas.com/rnd/base/ods/odsmarkup/index.html 

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
  • 959 views
  • 0 likes
  • 2 in conversation