Hi Reeza, Thank you very much for your help. But I am so confused about what you are trying to explain to me, let me refresh my question,could you run this: /***********************************************code begin************************************************************************/ Dim obSAS As SAS.Workspace Dim obWorkspaceManager As New SASWorkspaceManager.WorkspaceManager Private Sub Form_Load() Dim obConnection As New ADODB.Connection Dim obRecordSet As New ADODB.Recordset Dim errorString As String Set obSAS = obWorkspaceManager.Workspaces.CreateWorkspaceByServer( "MyWorkspaceName", VisibilityProcess, Nothing, "", "", errorString) obSAS.LanguageService.Submit "data a; x=1; y=100; output; x=2; y=200; output; run;" obConnection.Open "provider=sas.iomprovider.1; SAS Workspace ID=" + obSAS.UniqueIdentifier obRecordSet.Open "work.a", obConnection, adOpenStatic, adLockReadOnly, adCmdTableDirect obRecordSet.MoveFirst Debug.Print obRecordSet(1).Value End Sub Private Sub Form_Unload(Cancel As Integer) ' If we don't close SAS, the ' SAS process might run forever If Not (obSAS is Nothing) Then obWorkspaceManager.Workspaces.RemoveWorkspace obSAS obSAS.Close End If End Sub /*****************************************************end of code*********************************************************************************/ in SAS base? you said base sas being called through a .NET interface could run this code,I don't have too much knowledge of .NET interface, what is "Dim" here means? is that a program language outside SAS? could you give me an example? Thanks a lot! Mike
... View more