Command Method

Invokes a command as if it were entered from the SAS command line.

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")