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
SAS Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.

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