You are trying to create an asynchronous connection. Instead, I would try to create a synchronous connection (change the second parameter to true).
Set obSAS = obObjectFactory.CreateObjectByServer("sas", True, obServer, "", "")
, . . TRUE, CreateObjectByServer , . FALSE, . , ObjectKeeper.
SAS. , Nothing .
http://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/omcreate.html
Submit ,
If obSAS Is Nothing Then
MsgBox("Connection failed")
Else
obSAS.LanguageService.Submit "PROC SQL; CREATE TABLE ME.TABLE1; RUN;" 'Error at submit
End If
, Object Object .
'-2147213310 (80042002) /. SAP, . html. , / .
8591. , . , , , "", .
BTW: IWA ( Windows), ().
Set obSAS = obObjectFactory.CreateObjectByServer("sas", True, obServer, Nothing, Nothing)