@tadams11 wrote:
Is there a way in base SAS to launch a browser on my computer and open to a web address? For example, is there a line of code that I could insert into a program to open Internet Explorer and go immediately to www.sec.gov? Almost like bookmarking a webpage with information relevant to my analysis directly in my program.
I have base SAS and I run it locally on my PC.
Thanks.
If you have X command enabled this is relatively trivial. You need to have the location of your browser but otherwise it would look like:
X ""C:\Program Files\Internet Explorer\iexplore.exe" www.sec.com";
I can't test it now because I'm at home, but that's the idea anyways. It's usually the quote marks that trip me up somehow.
If X doesn't work, you can try %SYSEXEC or CALL SYSTEM as well.
You can enable XCMD if you need it with the following, though its possible that your system may have it locked down:
option xcmd;
@tadams11 wrote:
Is there a way in base SAS to launch a browser on my computer and open to a web address? For example, is there a line of code that I could insert into a program to open Internet Explorer and go immediately to www.sec.gov? Almost like bookmarking a webpage with information relevant to my analysis directly in my program.
I have base SAS and I run it locally on my PC.
Thanks.
If you have X command enabled this is relatively trivial. You need to have the location of your browser but otherwise it would look like:
X ""C:\Program Files\Internet Explorer\iexplore.exe" www.sec.com";
I can't test it now because I'm at home, but that's the idea anyways. It's usually the quote marks that trip me up somehow.
If X doesn't work, you can try %SYSEXEC or CALL SYSTEM as well.
You can enable XCMD if you need it with the following, though its possible that your system may have it locked down:
option xcmd;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.