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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 789 views
  • 0 likes
  • 2 in conversation