BookmarkSubscribeRSS Feed
deleted_user
Not applicable
for the html destination usage note 23395 shows how to left align all info in the Table of Contents (http://support.sas.com/kb/23/395.html).
Is there any prospect of getting something like this working for tagsets.excelXP ?

PeterC
2 REPLIES 2
Eric_SAS
SAS Employee
The index=yes option will create a left aligned index of worksheets in the first worksheet.

Is that what you want?

Eric
deleted_user
Not applicable
Thank you,
that index= yes option provides a great start.
It condenses the links into just one column.

ODS allows the statement option Contents= and statement ODS ProcLabel= to customize text in a ToC. It would be nice if this was also used on the Worksheets tab created by Index='yes'.

The big feature is the ability to control text on a ToC

I used this model code to show the comparison[pre]
ods _all_ close ;
ods tagsets.excelxp file=odsout( url=none) rs=none
options(index='yes' contents='yes'
Embedded_Titles='YES' Embed_Titles_Once='No' )
;
title 'class' ;
proc sort data= sashelp.class out= class; by sex ;
title2 j=r 'class in page dim';
ods tagsets.excelxp options( sheet_name='ClassTable' );
ods proclabel='A';
proc tabulate format= best5. contents='2';
var height weight ;
class age sex ;
table age all, mean*( height weight )
/ contents= '3' ;
run;
title2 j=r 'by statements' ;
ods tagsets.excelxp options( sheet_name='PageBy' );
ods proclabel='B';
proc tabulate format= best5. contents='4';
var height weight ;
class age sex ;
table sex all
, age all, mean*( height weight )
/ contents= '5' ;
by sex ;
run;
title2 j=r 'proc print' ;
ods tagsets.excelxp options( sheet_name='ListBy' );
ods proclabel='P';
proc print contents='6'; by sex ; run;
ods _all_ close ; [/pre]


Appreciating the support

PeterC

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