Try the following TEST.VBS file  '''''''''''''''''''''''  Option Explicit  Dim wsh, sc  Set wsh = CreateObject("WScript.Shell")  Set sc = CreateObject("ScriptControl")  sc.Language = "VBScript"  sc.AddCode("Function bar(s) : bar = s : End Function")  wsh.Popup(sc.Run("bar", "VBScript called"))  Set sc = nothing  Set wsh = nothing  '''''''''''''''''''''''  What do you get?  : Hi  : I have 24x7 installed on my machine.  : I have SAS installed on my machine.  : I tried running your SAS automation script replacing  : the %include statement with a simple sas script.  : I recieved the following error message: An error occurred while executing  : automation script.  : Processing Error #2  : Script Control class name not found,  : probally WSH is not installed.  : Do you know what this means?   
   |