Previous Page | Next Page

SAS System Options

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
Alias: CGOPT
Category: System administration: Performance
System administration: Code generation
PROC OPTIONS GROUP= PERFORMANCE
CODEGEN

Syntax
Syntax Description
See Also

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

Reducing CPU Time by Modifying Program Compilation Optimization in SAS Language Reference: Concepts

Previous Page | Next Page | Top of Page