BookmarkSubscribeRSS Feed
SSin
Obsidian | Level 7

I am using SAS university edition. I am trying to export an output (line graph) from SAS into excel. I downloaded the graph as html file. Then I open it in excel. I can see only text part of the html file but not the graph itself.

I tried saving the file in "excel workbook" type and open it again. This time excel cannot open it at all. 

I attached the html file I am trying to export. 

 

Please help me. Many thanks in advance. 

 

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Please do be clear on what you want.  First off, how are you generating the graph - the original.  Is it via code, if so please present the code you are using, put it in a code window - its the {i} above post area.  

Next please be clear in your understanding of filetypes.  The file extension - the bit after the dot in filenames, indiates the application with which to open that file, and the file content.  You talk about HTML, then that you are opening that with Excel.  Excel is not HTML, Excel has its own file formats, HTML is a webpage markup file.  You then proceed to tell us a HTML file is attached, but in fact the file is a PDF, which again is not HTML.

 

Now in code, the simplest method to get output to Excel - assuming that is the destination you really want - is to use ods excel:

https://support.sas.com/resources/papers/proceedings17/0169-2017.pdf

You simply set the ods options before, after and possibly during the sequence of output routines (so prints, reports, sgplots etc.) and these all get streamed out to the file.

SSin
Obsidian | Level 7

Thank you for the reply. My friend helped me out. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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