INITCMD System Option

Specifies an application invocation command and optional SAS windowing environment or text editor commands that SAS executes before processing the AUTOEXEC= file during SAS invocation.
Valid in: Configuration file, SAS invocation
Category: Environment control: Initialization and operation
PROC OPTIONS GROUP= EXECMODES
Note: This option cannot be restricted by a site administrator. For more information, see Restricted Options.

Syntax

Syntax Description

command-1
specifies any SAS command that invokes an application window. Some valid values are:
AF LAB
ANALYST MINER
ASSIST PHCLINICAL
DESIGN PHKINETICS
EIS PROJMAN
FORECAST QUERY
GRAPH RUNEIS
HELP SQC
IMAGE XADX.
Restriction:If you specify FORECAST for command-1, you cannot use windowing-command-n.
windowing-command-n
specifies a valid windowing command or text editor command. Separate multiple commands with semicolons. These commands are processed in sequence. If you use a windowing command that impacts flow, such as the BYE command, it might delay or prohibit processing.
Restriction:Do not use the windowing-command-n argument when you enter a command for an application that submits SAS statements or commands during initialization of the application, that is, during autoexec file initialization.

Details

The INITCMD system option suppresses the Log, Output, Program Editor, and Explorer windows when SAS starts so that application window is the first screen that you see. The suppressed windows do not appear, but you can activate them. You can use the ALTLOG option to direct log output for viewing. If windows are initiated by an autoexec file or the INITSTMT option, the window that is displayed by the INITCMD option is displayed last. When you exit an application that is invoked with the INITCMD option, your SAS session ends.
You can use the INITCMD option in a windowing environment only. Otherwise, the option is ignored and a warning message is issued. If command-1 is not a valid command, the option is ignored and a warning message is issued.
The following SAS execution mode invocation options, in order, have precedence over this option:
  1. OBJECTSERVER.
  2. DMR
  3. SYSIN
If you specify INITCMD with another execution mode invocation option of equal precedence, SAS uses only the last option listed. See Order of Precedence for more information about invocation option precedence.

Example

INITCMD "AFA c=mylib.myapp.primary.frame dsname=a.b"
INITCMD "ASSIST; FSVIEW SASUSER.CLASS"