I was going through couple of articles on how to connect to SAS from VB. I found two different methods to achieve the same. Can anyone help me to understand what is the difference between connecting using SASWorkspaceManager and SASObjectManager. Dim obWSMgr As New SASWorkspaceManager.WorkspaceManager Dim obWS As SAS.Workspace Dim errString As String Set obWS = obWSMgr.Workspaces.CreateWorkspaceByServer('My workspace', VisibilityNone, Nothing, ', ', errString) Debug.print obWS.Utilities.HostSystem.DNSName ObWS.Close Dim obObjectFactory As New SASObjectManager.ObjectFactory Dim obSAS As SAS.Workspace Set obSAS= obObjectFactory.CreateObjectByServer(', True, Nothing, ', ') Debug.print obSAS.Utilities.HostSystem.DNSName ObSAS.Close.
I was going through couple of articles on how to connect to SAS from VB. I found two different methods to achieve the same. Can anyone help me to understand what is the difference between connecting using SASWorkspaceManager and SASObjectManager. Your Visual Basic program's interaction with SAS begins by creating a SAS.Workspace object. This object represents a session with SAS and is functionally equivalent to a SAS Display Manager session or the execution of Base SAS software in a batch job.