CGOPTIMIZE= System Option

Specifies the level of optimization to perform during code compilation.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Categories: System administration: Performance

System administration: Code generation

PROC OPTIONS GROUP= PERFORMANCE

CODEGEN

Alias: CGOPT
Note: This option can be restricted by a site administrator. For more information, see Restricted Options.

Syntax

CGOPTIMIZE=0 | 1 | 2 | 3

Syntax Description

0
specifies not to perform optimization.
1
specifies to perform stage 1 optimization. Stage 1 optimization removes redundant instructions, missing value checks, and repetitive computations for array subscriptions; detects patterns of instructions and replaces them with more efficient sequences.
2
specifies to perform stage 2 optimization. Stage 2 performs optimizations that pertain to the SAS register.
Interaction:Stage 2 optimization for a large DATA step program can result in a significant increase in compilation time and thus overall execution time.
3
specifies to perform full optimization, which is a combination of stages 1 and 2. This is the default value.

See Also