| Controlling SAS from Another Application Using OLE |
| Syntax | |
| Details | |
| Example |
Syntax |
| Submit("SAS-program-code") |
| Details |
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.
| Example |
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.