Desktop productivity for business analysts and programmers

SAS EG

Reply
Occasional Contributor
Posts: 16

SAS EG

Hi All,

 

I need to run (.vbs) file in sas eg. But i couldn't run it through sas eg. I can only run the same .vbs file out of sas.

 

Any help will be most appreciated.

 

Thanks in Advance.

 

 

Super User
Posts: 8,080

Re: SAS EG

Posted in reply to Sabharish

SAS Enterprise Guide uses a so-called workspace server for running all the code it creates. This workspace server is configured per default to not allow external commands. It also might reside remotely and on a non-Windows operating system.

 

Please post the log of your failed step.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 16

Re: SAS EG

Posted in reply to KurtBremser
Thanks for the above Info.

I'm not getting any error in the log. when i just run the .vbs file using x cmd its not executing only for .vbs file inside SAS EG session. I can run the .vbs file outside the SAS EG session using cmd prompt.
Super User
Posts: 8,080

Re: SAS EG

Posted in reply to Sabharish

Instead of using the x statement, do this to call your external command:

filename oscmd pipe "your_vbs_call 2>&1";

data _null_;
infile oscmd;
input;
put _infile_;
run;

This will write all answers from the operating system to the SAS log.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 117 views
  • 0 likes
  • 2 in conversation