To invoke the Expression
Builder, double-click the
Expression field.
Invoking the Expression Builder
Then, double-click the
icon that contains the ellipsis (
...). The
Expression Builder window appears and enables you to
specify a filter.
Note: When invoked from the
Add Filter dialog box, the
Expression Builder window consists of two tabs:
Functions and
Data Sources.
Expression Builder Window with Functions Tab Selected
The
Data
Sources tab of the
Expression Builder window lists the columns of the table that is the input to this
Aggregation transformation.
Expression Builder Window with Data Sources Tab Selected
You can select any of
these columns from the list of data sources to be an operand in the
expression that you are building.
For information about
the
Expression Builder window, click the
F1 key or
Help from within that window.
Note: The syntax of the expression
that specifies the filter must conform to the rules for an IF statement
and should result in a nonzero value for true and zero value for false.
(Do not code the word
IF
; code the expression
only.) Certain operations that are valid only in a WHERE clause fail
if they are used in a filter. For information about the IF and WHERE
statements, see the Statements chapter of the
SAS Language
Reference: Dictionary.
When you are satisfied
with the expression, click
OK in the
Expression Builder window to close that window and place
the expression in the appropriate field of the filter.