Hi,
I was wondering if it is possible to do internet automation with SAS.
For example, is it possible to write a SAS program that will open my Chrome browser, go to Wikipedia and search for 'SAS'
Thank you!
The below code will open wikipedia with Search string sas.
data _null_;
x 'cd C:\Program Files (x86)\Google\Chrome\Application\';
x 'chrome.exe "wikipedia.org/wiki/sas" ';
run;
Actually speaking, it is internet automation with DOS. I am calling DOS command through SAS datasetep.
Hi RahulG, thank you for the quick reply!!
I do realize that this can be done by extending the 'sas' into the url, but is it possible to actually write 'sas' in the search box?
Thank you!
I would expect you need to know the API for the specific web page, e.g. passing something like:
wikipedia.org/wiki/search=?SAS?
in as the URL - note the above doesn't work, its an example. The question I would raise is why, what is it your trying to achieve? I don;t see any benefits of putting this kind of thing in code, your just adding a layer of obfuscation.
I don't think it can. If you need something like that Selenium is a good tool to use.
Hi Reeza,
If it is pyton selenium that you mean, I already looked at it, and was hoping if something similar can be done with SAS. But if it can't then I guess that I will have to us python and selenium.
Thank you!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.