SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

SAS internet automation

Reply
Super Contributor
Posts: 441

SAS internet automation

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! 

Super Contributor
Posts: 266

Re: SAS internet automation

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.

 

Super Contributor
Posts: 441

Re: SAS internet automation

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!

Super User
Super User
Posts: 7,987

Re: SAS internet automation

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.

Super User
Posts: 19,858

Re: SAS internet automation

I don't think it can. If you need something like that Selenium is a good tool to use. 

Super Contributor
Posts: 441

Re: SAS internet automation

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!

Ask a Question
Discussion stats
  • 5 replies
  • 449 views
  • 4 likes
  • 4 in conversation