<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Starting a VB script from a sas program in EG 5.1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389224#M25111</link>
    <description>&lt;P&gt;What is the log output from your last data step that runs the cscript? If there's none, the script should have run OK.&lt;/P&gt;
&lt;P&gt;Are you sure that the SAS workspace server runs on the same machine that you are looking at for the results of the script?&lt;/P&gt;
&lt;P&gt;I suspect that you run the script on the SAS server while expecting that it runs on your desktop.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 20:17:06 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-08-18T20:17:06Z</dc:date>
    <item>
      <title>Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389113#M25092</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to start a VB script from a SAS program in EG 5.1 and it never start by itself.&lt;/P&gt;&lt;P&gt;I have to go on windows explorer, select the folder where the vb script is copied and double click on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I have found on the communities&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Run the generated program ;&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp; infile "cscript ""&amp;amp;dir\temp.vbs""" pipe;&lt;BR /&gt;&amp;nbsp; input;&lt;BR /&gt;&amp;nbsp; put _infile_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone could help me with that issue?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389113#M25092</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2017-08-18T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389116#M25093</link>
      <description>&lt;P&gt;Could be various things, none of which are debuggable from what you have posted.&lt;/P&gt;
&lt;P&gt;First, remove the macro variable and put a path in its place, then copy the string to your command window and see if the command actually runs, i.e. your path could be wrong.&lt;/P&gt;
&lt;P&gt;Also do you have command line access from SAS, in a lot of setups this is deactivated for security reasons.&lt;/P&gt;
&lt;P&gt;Thirdly, what does temp.vbs actually do? &amp;nbsp;What information is in the command window that you want to pipe back? &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%sysexec cscript "a:\abc\temp.vbs";
&lt;/PRE&gt;
&lt;P&gt;Would seem the simplest way to just execute a VBA script?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389116#M25093</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-18T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389128#M25095</link>
      <description>&lt;P&gt;If your EG is part of a client/server setup, you can only start external commands from code on the server.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 15:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389128#M25095</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-18T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389170#M25106</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the following code on the communties web site in order to transform xls Excel file into xlsx file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/****************************************/&lt;/P&gt;&lt;P&gt;/* Create sample files to convert. */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/****************************************/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dir=\\Spsas002\dfs\DATA08\SEAR\ANAQUANT\Portrait\BTar2018\V1_Dépot\SORTIES\MS_CT_UNI\Nouveau dossier;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ext=xls ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;* Generate Visual Basic program ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"'&amp;amp;dir\temp.vbs'"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"set xlapp = CreateObject(""Excel.Application"")"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"set fso = CreateObject(""scripting.filesystemobject"")"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"set myfolder = fso.GetFolder(""&amp;amp;dir"")"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"set myfiles = myfolder.Files"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"xlapp.DisplayAlerts = False"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"for each f in myfiles"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" ExtName = fso.GetExtensionName(f)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" Filename= fso.GetBaseName(f)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" If ExtName=""&amp;amp;ext"" then"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" set mybook = xlapp.Workbooks.Open(f.Path)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" xlapp.Visible = false"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" mybook.SaveAs ""&amp;amp;dir.\"" &amp;amp; Filename &amp;amp; "".xlsx"", 51"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" mybook.Close"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" End If"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Next"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"xlapp.DisplayAlerts = True"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"xlapp.Quit"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Set xlapp = Nothing"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"strScript = Wscript.ScriptFullName"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"FSO.DeleteFile(strScript)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Show the generated program ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"'&amp;amp;dir\temp.vbs'"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _n_ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; +&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;* Run the generated program ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"cscript ""&amp;amp;dir\temp.vbs"""&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pipe&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;The script never start by itself.&amp;nbsp; I have to got to &amp;amp;dir folder and double click on the script icon.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;More over, I have try your solution and it does not work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Alain&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 17:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389170#M25106</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2017-08-18T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389224#M25111</link>
      <description>&lt;P&gt;What is the log output from your last data step that runs the cscript? If there's none, the script should have run OK.&lt;/P&gt;
&lt;P&gt;Are you sure that the SAS workspace server runs on the same machine that you are looking at for the results of the script?&lt;/P&gt;
&lt;P&gt;I suspect that you run the script on the SAS server while expecting that it runs on your desktop.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 20:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389224#M25111</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-18T20:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389272#M25112</link>
      <description>&lt;P&gt;The ability to shell out to the operating system and run system commands (such as exexcuting the type of script you describe) is often disabled by system administrators. If you run the following pirece of code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=noxcmd define value;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should get something like this in your log file telling you the setting for that option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 61         
 62         proc options option=noxcmd define value;
 63         run;
 
     SAS (r) Proprietary Software Release 9.4  TS1M4
 
 Option Value Information For SAS Option XCMD
     Value: NOXCMD
     Scope: SAS Session
     How option value set: SAS Session Startup Command Line
 
 
 Option Definition Information for SAS Option XCMD
     Group= ENVDISPLAY
     Group Description: Windows and data display information
     Description: Disables the X command in SAS.
     Type: The option value is of type BOOLEAN
     When Can Set: Session startup (command line or config) only
     Restricted: Your Site Administrator can restrict modification of this option
     Optsave: PROC Optsave or command Dmoptsave will not save this option
 NOTE: PROCEDURE OPTIONS used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it is disabled (as in this example) you may have to consult your SAS Administrator to ask for it to be changed.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 23:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389272#M25112</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-18T23:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389471#M25127</link>
      <description>&lt;P&gt;So, several things.&lt;/P&gt;
&lt;P&gt;First, why use SAS to run VB to change XLS to XLSX? &amp;nbsp;Seems like a lot of faff. &amp;nbsp;Add a loop into the VBS and just run that (i.e. drop the SAS part) or just use VB in Excel to do this by opening and saving each file - simple and you only need one tech then.&lt;/P&gt;
&lt;P&gt;Second, why the change from XLS to XLSX? &amp;nbsp;I know XLSX is the newer format, but if your converting datasheets, move them to something portable and readbale by everything (removes the need to do this in the future) something like CSV/XML&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid "&lt;SPAN&gt;and it does not work&lt;/SPAN&gt;" does not really relate anything to me, its likely that you don't have system access from SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 08:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/389471#M25127</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-21T08:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/390988#M25255</link>
      <description>&lt;P&gt;Here's the code you have suggeted to use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;option&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=noxcmd &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;value&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;You will find below the log file:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 %_eg_hidenotesandsource;&lt;/P&gt;&lt;P&gt;5 %_eg_hidenotesandsource;&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;23 proc options option=noxcmd define value;&lt;/P&gt;&lt;P&gt;24 run;&lt;/P&gt;&lt;P&gt;SAS (r) Proprietary Software Release 9.3 TS1M2&lt;/P&gt;&lt;P&gt;Option Value Information For SAS Option XCMD&lt;/P&gt;&lt;P&gt;Value: XCMD&lt;/P&gt;&lt;P&gt;Scope: SAS Session&lt;/P&gt;&lt;P&gt;How option value set: Shipped Default&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Option Definition Information for SAS Option XCMD&lt;/P&gt;&lt;P&gt;Group= ENVDISPLAY&lt;/P&gt;&lt;P&gt;Group Description: Windows and data display information&lt;/P&gt;&lt;P&gt;Description: The X Command is valid in this SAS session&lt;/P&gt;&lt;P&gt;Type: The option value is of type BOOLEAN&lt;/P&gt;&lt;P&gt;When Can Set: Session startup (command line or config) only&lt;/P&gt;&lt;P&gt;Restricted: Your Site Administrator can restrict modification of this option&lt;/P&gt;&lt;P&gt;Optsave: PROC Optsave or command Dmoptsave will not save this option&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE OPTIONS a utilisé (Durée totale du traitement) :&lt;/P&gt;&lt;P&gt;temps réel 0.00 secondes&lt;/P&gt;&lt;P&gt;temps UC 0.00 secondes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;26 %_eg_hidenotesandsource;&lt;/P&gt;&lt;P&gt;38&lt;/P&gt;&lt;P&gt;39&lt;/P&gt;&lt;P&gt;40 %_eg_hidenotesandsource;&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I think it should work.&amp;nbsp; Am I right?&lt;/P&gt;&lt;P&gt;If so, what can I do to make it working?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 18:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/390988#M25255</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2017-08-25T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a VB script from a sas program in EG 5.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/391027#M25256</link>
      <description>&lt;P&gt;Yes that confirms that you have privileges to shell out and run external commands so we can eliminate that from the equation. Have you tried the suggestions from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;in his first reply to your post? That's exactly what I would do next.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 22:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Starting-a-VB-script-from-a-sas-program-in-EG-5-1/m-p/391027#M25256</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-25T22:09:05Z</dc:date>
    </item>
  </channel>
</rss>

