Previous Page | Next Page

SAS System Options

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
Alias: IS=
Category: Environment control: Initialization and operation
PROC OPTIONS GROUP= EXECMODES
See: INITSTMT= System Option under Windows OpenVMS

Syntax
Syntax Description
Comparisons
Examples
See Also

Syntax

INITSTMT='statement'

Syntax Description

'statement'

specifies any SAS statement or statements.

Requirements: statement must be able to run on a step boundary.

Operating Environment Information:   On the command line or in a configuration file, the syntax is specific to your operating environment. The SYSIN= system option might not be supported by your operating environment. For details, see the SAS documentation for your operating environment.  [cautionend]


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.


Examples

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 Option:

TERMSTMT= System Option

Previous Page | Next Page | Top of Page