I tried to launch a script VBs from a SAS Ent Guide project.
I follow the instruction mentionned here :
http://support.sas.com/kb/13/501.html
-- -- --
data _null_;
X "E:\SITE.vbs"
run ;
-- -- --
So, I created a CODE and pasted the lines here upper but I get a message error from SAS which is :
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL=%NRBQUOTE(Code);
4 %LET _EGTASKLABEL=%NRBQUOTE(Code);
5 %LET _CLIENTPROJECTNAME=%NRBQUOTE();
6 %LET _SASPROGRAMFILE=;
7
8 ODS _ALL_ CLOSE;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices. Graph defaults for these
drivers may be different from other SAS/GRAPH device drivers. For further information, please contact Technical Support.
9 OPTIONS DEV=ACTIVEX;
10 FILENAME EGHTML TEMP;
NOTE: Writing HTML(EGHTML) Body file: EGHTML
11 ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault
11 ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")
11 ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation
11 ! ;
12
13 %gaccessible;
14
15
16
17
WARNING: Shell escape is not valid in this SAS session.
18 data _null_;
19 X "E:\SITE.vbs"
20 run
20 ! ;
21 /*quit;
22 run ;
23
24
25
26 %LET _CLIENTTASKLABEL=;
27 %LET _EGTASKLABEL=;
28 %LET _CLIENTPROJECTNAME=;
29 %LET _SASPROGRAMFILE=;
30
31 ;*';*";*/;quit;run;
____
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
32 ODS _ALL_ CLOSE;
33
34
35 QUIT; RUN;
36
Any idea from where comes the problem ?
Thank you in advance