INITSTMT= System Option

Specifies a SAS statement to execute after any statements in the AUTOEXEC= file and before any statements from the SYSIN= file.
Valid in: Configuration file, SAS invocation
Category: Environment control: Initialization and operation
PROC OPTIONS GROUP= EXECMODES
Alias: IS=
Note: This option cannot be restricted by a site administrator. For more information, see Restricted Options.
See: INITSTMT= System Option under Windows

Syntax

INITSTMT='statement'

Syntax Description

'statement'
specifies any SAS statement or statements.
Requirement:statement must be able to run on a step boundary.

Comparisons

INITSTMT= specifies the SAS statements to be executed at SAS initialization, and the TERMSTMT= system option specifies the SAS statements to be executed at SAS termination.

Example

Here is an example of using this option on UNIX:
sas -initstmt '%put you have used the initstmt; data x; x=1;
   run;'

See Also

System Options: