BookmarkSubscribeRSS Feed
Sabharish
Fluorite | Level 6

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.

 

 

3 REPLIES 3
Kurt_Bremser
Super User

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.

Sabharish
Fluorite | Level 6
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.
Kurt_Bremser
Super User

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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 868 views
  • 0 likes
  • 2 in conversation