Controlling SAS from Another Application Using OLE |
Submits DATA step or procedure code for processing.
Submit("SAS-program-code")
|
The string of text that you specify as SAS-program-code can contain multiple SAS
statements separated
by semicolons. The contents of the string are submitted to SAS for processing.
The following example references a data library and
invokes a SAS/AF application:
Dim OleSAS as Object
Set OleSAS = CreateObject("SAS.Application")
OleSAS.Visible = True
OleSAS.Submit("libname afapp 'f:\sas\afapp';")
OleSAS.Command("af c=afapp.bigapp.main.frame")
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.