Previous Page | Next Page

Controlling SAS from Another Application Using OLE

Command Method



Invokes a command as if it was entered from the SAS command line.
Syntax
Details
Example

Syntax

Command("sas-command")


Details

By default, the active window receives the command. You can change which window receives the command by changing the CommandWindow property.


Example

This Visual Basic code invokes a SAS session and opens the BUILD window:

Set OleSAS = CreateObject("SAS.Application")
OleSAS.Command("build")

Previous Page | Next Page | Top of Page