|
楼主

楼主 |
发表于 2011-1-14 13:39:35
|
只看该作者
matlab调用SAS
在尝试模仿VBA调用SAS的形式,用Matlab调用SAS时,利用
wsManager = actxserver('sasworkspacemanager.workspacemanager');
SASworkspace = wsManager.workspaces;
时,通过SASworkspace.invoke发现,有如下方法:
invoke(SASworkspace)
CreateWorkspaceByLogicalName = [handle, string] CreateWorkspaceByLogicalName(handle, string, Visibility, string, string)
CreateWorkspaceByServer = [handle, string] CreateWorkspaceByServer(handle, string, Visibility, handle, string, string)
GetWorkspaceByName = handle GetWorkspaceByName(handle, string)
GetWorkspaceByUUID = handle GetWorkspaceByUUID(handle, string)
RemoveWorkspace = void RemoveWorkspace(handle, handle)
RemoveWorkspaceByUUID = void RemoveWorkspaceByUUID(handle, string)
CreateColocatedWorkspace = handle CreateColocatedWorkspace(handle, string, Visibility, handle)
AddExternalWorkspace = void AddExternalWorkspace(handle, Visibility, handle)
然而,当使用
info = invoke(SASworkspace, 'CreateWorkspaceByServer', '', 'VisibilityProcess', 'Nothing', '', 'xmlinfo');
创建服务时,却显示,
??? No method 'CreateWorkspaceByServer' with matching signature found for class
'Interface.SASWorkspaceManager_1.1_Type_Library.IWorkspaces'.
各位使用SAS的大侠,可知原因,不胜感谢! |
|