Dear community, We recently upgrade our SAS environment from PC SAS to SAS Studio. After some research, we decided to use SAS Integration Technologies to build our batch submit tool (remote submit programs from client machines/VMs to SAS server). The prototype works on our currently VMs (which has PC SAS installation). We need to test the tool on the environment that has no BASE SAS installation. Based on the documentation, I was under the impression that it should work as long as SAS Integration Technologies client for windows is installed. However, after testing I couldn't get the tool running on the test machine. To be accurate, with SAS Integration Technologies installed, the tool can run but failed in creating workspace server. Below is the (PowerShell) code that fails: $objFactory = New-Object -ComObject SASObjectManager.ObjectFactoryMulti2
$objServerDef = New-Object -ComObject SASObjectManager.ServerDef
$objServerDef.MachineDNSName = "<SAS-Workspace-Server-Address>"
$objServerDef.Port = 8591
$objServerDef.Protocol = 2
$objServerDef.ClassIdentifier = "440196d4-90f0-11d0-9f41-00a024bb830c"
try {
# create and connect to the SAS session
$workspaceserver = $objFactory.CreateObjectByServer(
"SASApp", # server name
$true,
$objServerDef, # built server definition
"<User-Name>", # user ID
"<Password>" # password
)
$workspaceserver.LanguageService.Submit("option set=a=""Hello World"";")
$sasrtn = ""
$rc = $WorkspaceServer.Utilities.HostSystem.GetEnv("a", [ref] $sasrtn)
Write-Host $sasrtn
$workspaceserver.Close()
}
catch [system.exception] {
Write-Host "Could not connect to SAS session: " $_.Exception.Message
} The error I got is Could not connect to SAS session: <connectionAttempts>
<connectionAttempt>
<description>Unspecified error</description>
<status>0x80004005</status>
<saslogin>XXXXXXXXXXXXXX</saslogin>
<sasmachinednsname>XXXXXXXXXXXXXX</sasmachinednsname>
<sasport>8591</sasport>
<sasclassid>440196d4-90f0-11d0-9f41-00a024bb830c</sasclassid>
<sasprogid>SAS.Workspace.1.0</sasprogid>
<threadid>4704</threadid>
<name>SASApp</name>
</connectionAttempt>
</connectionAttempts> The same code can run sucessfully on our current VM where BASE SAS is installed. I can't tell if this is due to some settings on the test machine that is irrelevant to SAS, or is it due to the fact that SAS Integration Technologies alone cannot support the funtion of this code. Does anyone have any experience on this topic? Thanks in advance!
... View more