BookmarkSubscribeRSS Feed
deleted_user
Not applicable
When I do a quick proc univariate analysis of a dataset to an excel work book using ODS tagset.excelXP, most tables of results do not have the name of the variable being analysed.
Am I missing a simple option ?
Do I have to modify templates for proc univariate and /or tagsets.excelXP? I hesitate over the first, and will make a manual work-around rather than get involved with the second.
This code demonstrates my problem: (It expects fileref ODSOUT pointing to a suitable place for the formatted results) [pre]
title 'testing univariate templates in ods through excelxp' ;
ods tagsets.excelxp file= odsout( url= none) rs= none
options( contents='yes' Embedded_Titles='yes' ) ;
proc univariate data= sashelp.class ;
id name ;
run;
ods _all_ close ;
[/pre]
Without the "contents='yes'" the names of the variables analysed, appear nowhere!

PeterC replacing "index='yes'" with "contents='yes'". Before posting, the code was fixed but not the narrative;-)
PeterC
PeterC


Message was edited by: Peter_c
1 REPLY 1
Eric_SAS
SAS Employee
The variables aren't showing up because the Excel tagset does not display titles generated by the procedure. I've worked at adding them today and haven't quite got it working yet.

Timing is a problem here, so it's getting complicated. I can make it work it's just going to
take a little more time.

Eric

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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