SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Pooja2
Fluorite | Level 6

Hi,

 

I am working on a project where I need to import graphs from a website (one webpage has one graph) and then export that to an excel sheet with some specifications. I have never done that kind of stuff. I need someone to help me with this.

 

Thanks in advance.

2 REPLIES 2
SASKiwi
PROC Star

Graphs on a website would have to be processed as images and SAS 9.* doesn't do image processing. SAS Viya does image analytics but I suspect that is not what you want.

 

A quick and dirty solution would be to do manual screenshots and paste them into Excel. No SAS required.

ChrisNZ
Tourmaline | Level 20

I have never needed this but I believe that you can:

- download the html page

-  analyse the page to find the image's URL

- download the image file

Then you *may*  be able to insert it in excel, for example by using the ODS PREIMAGE= option.

 

You can probably find vbs scripts on the web that do what you want, and which would be better suited.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 687 views
  • 0 likes
  • 3 in conversation