BookmarkSubscribeRSS Feed
akarki001
Fluorite | Level 6

I am trying to export table and graph in one sheet using ODS excel but every-time i run, it wipeout all other existing sheet of the excel file. Is there anyway i can create new sheet like proc export does. if you suggest proc export to use, please let me know how to export graph right under table with nice format. Thank you.

2 REPLIES 2
Reeza
Super User
Unfortunately I'm not aware of a mechanism to do what you'd like by default.
You can write to an Excel file and then combine them using VBS (from SAS) which is a duct tape type solution that requires WIndows and is probably buggy.

ODS EXCEL will overwrite the file each time.
PROC EXPORT will not export graphics.

Getting your table is fine, the graph is not. Another option - generate the graph in Excel and have SAS supply the data/update the data as needed instead of creating it in SAS entirely. I do this for template reports all the time, fastest way to automate a report in my experience.
akarki001
Fluorite | Level 6
Thank you so much for your prompt response.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 335 views
  • 1 like
  • 2 in conversation