BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Has anyone been able to use the excelxp tagset to graph the data sets that proc print sends to excel? We're using an antiquated method to export reports to excel and the graph them and we're changing it to ODS. I'm at a loss to know why graphing is such an Achilles heel with the excelxp tagset. Especially given the simplicity of it.

Can anyone supply the code needed to create a simple bar chart in excel using tagsets.excelxp using the following data set?

data xyz;
x = 1;
y = 2;
z = 3;
run;

Many thanks to the person who can solve this.
4 REPLIES 4
David_SAS
SAS Employee
The ExcelXP tagset generates a Microsoft-defined XML called SpreadsheetML that is compatible with Excel 2003. SpreadsheetML does not support images.

-- David Kelley, SAS
deleted_user
Not applicable
Whether it supports images is irrelevant. I just want to use Excel to graph the data in an automated fashion within a SAS command. The same way the tagset has commands to do formats, colors, column sizes etc. This is separate and distinct from exporting an image. In fact, even if Microsoft allowed for this, why would we even want to? The chart (image) would not even be interactive within excel.

I think what you're saying is that users can't use this tagset if they want to create graphs in excel. It just takes away so much of the functionality. I'm just going to return to proc export in that case. I mean, are these silly formatting issues really a concern when you can't even get an automated graph in place? I don't think users will care about row sizes and other simple formatting when they realize that at the end of the day the graphing facility is non-existent.
-Tony
Peter_C
Rhodochrosite | Level 12
if first they "saveAs" a file-type that will suppoort graphs, then they will be able to create graphs. It won't be xml any more.
gzr2mz39
Quartz | Level 8
Have you tried the TableEditor tagset?
http://www2.sas.com/proceedings/forum2008/258-2008.pdf
See pg. 27.

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
  • 4 replies
  • 1116 views
  • 0 likes
  • 4 in conversation