BookmarkSubscribeRSS Feed
Stephane
Quartz | Level 8
Hi
a little birdy suggested me to post here a question about the launch of a VBS in EG.

The question is simple perhaps naive but could I execute this data inside EG
1. if the session invoked is on the same machine than EG (personal computer with an EBI platform)
2. on a remote server

options noxsync noxwait xmin ;
data _null_;
x 'd:\stef.vbs';
run;

On my personal computer with EBI, this step leaves the session running and I have to kill the process.

Does EG not support OLE launch as DDE launch and I have no possibility to run that ?

stef.vbs :

option explicit

dim word 'the Word application
dim doc 'the Word document
dim selection 'text selection

set word = createobject("word.application")
word.visible = False
word.DisplayAlerts = 0
set doc = word.documents.add
set selection = word.selection
selection.typetext "An Automated Word Report"
selection.typeparagraph

doc.saveas("d:\zztestdoc.doc")

word.Quit

set word = nothing

Any idea ?

Edit : I can successfully execute x command like that
data _null_;
x 'echo "funstuff"> d:\temp\myfunstuff.txt';
run;

data _null_;
x 'mkdir d:\temp\hello';
run; Message was edited by: Stephane
2 REPLIES 2
Stephane
Quartz | Level 8
From me to me : you need a administrator user on the machine and then the vbs will be executed.
ChrisHemedinger
Community Manager
You might also check out this note:

http://blogs.sas.com/sasdummy/index.php?/archives/136-Using-the-X-and-SYSTASK-commands-from-SAS-Ente...

Chris
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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