05-02-2014 10:03 AM
After spending the better part of the morning searching the Web without success I thought I would ask for help.
Can anyone point me to a simple procedure to import data from a web page?
05-02-2014 11:44 AM
Hi, and here is a most recent posting on using the FILENAME engine to read a URL:
If you search the community, you should find others. I know there have been user group papers written about it. Look at some of the hits that I found in the attached screen shot.
05-02-2014 01:24 PM
That message indicates an issue between SAS and the html data.
Can you cut-n-paste the html address from the filename into a browser ON THE SAME machine as the SAS server and get to the target? Sometimes a remote server can have different internet connectivity than a workstation.
05-05-2014 08:27 AM
With the filename url access method, you can specify user= and pass=.
Alternatively you could try to use wget to download to a local file and read that.
05-05-2014 08:51 AM
Does the table show on one screen or is it a large table? Regardless, if you still run into problems getting the data into SAS, you may want to take a look at: Copy and Paste Almost Anything - sasCommunity
The paper doesn't provide any of the help you've already been given regarding how to read the file directly, but may offer some needed advice for turning the html table into a SAS file.
05-22-2014 09:29 AM
Hi everyone and thanks for your comments.
What I ended up doing was linking an Excel file to the URL that contains the data.
SAS opens the excek file that then refreshes, Sas then imports the refreshed data.
Data validations are then performed.