BookmarkSubscribeRSS Feed
gyambqt
Obsidian | Level 7

Hello Experts,

I have recently awared that ODS excel became available to SAS users to produce native excel file(xlsx) that can insert charts. I have done that successfully on the EG.

I am just wondering when it comes to stored process, how do you make the following codes work if you use streaming output in stored process.(I do not want to save any excel output and just want to display it with AMO)

ods excel FILE="c:\a.xlsx"                                      
options(sheet_interval="none"
  sheet_name="CARS summary"
);

proc means data=sashelp.cars;
var msrp invoice;
run;

ods excel options(sheet_interval="none"
sheet_name="graph");


proc sgplot data=sashelp.cars;
histogram msrp;
run;

ods excel close;

Thanks

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

This is a question for Tech Support. As far as I know, Excel can only receive 3 types of output from a stored process: CSV, HTML, SAS Report XML -- so you would have to ask Tech Support whether your idea will work in a stored process. Usually, if the client application can't receive some type of output, you can sometimes get nothing or sometimes get the default result type for the client application.

cynthia

gyambqt
Obsidian | Level 7

Hi Cynthia,

I have test it out  the code ods excel  without stored process, it was working fine. But when it came to the stored process, error messages generated. I have no idea what caused the problem.

SASKiwi
PROC Star

It would help if you could provide the error messages you are getting.

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
  • 3 replies
  • 1062 views
  • 0 likes
  • 3 in conversation