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

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