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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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