BookmarkSubscribeRSS Feed
dhana
Fluorite | Level 6

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

2 REPLIES 2
jakarman
Barite | Level 11

If you are asking for concepts.....

There is a sas metadata server with a metadata base. 

You can start a process from there. Appserver with underlying workspace servers are part of that.

You do not need a metadata server when you have a running object spawner that one will manage the appservers with underlying workspace servers.

As you not always using a server managed approach but also your desktop the classic sas usage is also offered as a local workspace service ugh workspace server.

---->-- ja karman --<-----
ChrisBrooks
Ammonite | Level 13

Using the Object Manager gives you some more options than when you are using the Workspace Manager, particularly if you're connecting to a Metadata Server. If you're just using a Local Workspace session without a Metadata Server then to be honest there's probably not much difference - at the end of the day both will give you a SAS Workspace session.

You might find this link helpful SAS(R) 9.4 Integration Technologies: Windows Client Developer's Guide

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 601 views
  • 0 likes
  • 3 in conversation