Operator
|
Source ColumnData
Types
|
Description and Example
|
---|---|---|
Equal To
|
The Equal To operator
is available for use with all source data types, which include the
following:
Character
Numeric
Datetime
|
The source value is
accepted and its row is written to the target table only when the
source value exactly matches the comparator.
Character values can
be case-sensitive. Blank spaces are included in the comparison.
Datetime values in the
comparator use the SAS format DATETIME(w.p).
Gender Equal
To Male PrefCustomer
Equal To 1 SaleDate
Equal To 5/1/2014 |
Not Equal To
|
|
Accepts the source row
when the column value is anything other than the comparator.
Region Not
Equal To Europe NumChildren
Not Equal To 0 SaleDate
Not Equal To 11/25/2013 |
Null
|
|
Accepts the source row
when the column value is NULL or if no source value is present.
CreditScore
Null AnnualIncome
Null |
Not Null
|
|
Accepts the source row
when the column value is present and when the value is not NULL.
PostalCode
Not Null PhoneNumber
Not Null |
In
|
|
Accepts the source row
when the column value is included in its entirety within the comparator.
The comparator consists of a list of constant values. The list consists
of a vertical list of individual entries, without commas. Blank spaces
are interpreted literally. Case sensitivity can be enabled.
CarManuf
In BMW VW Benz WaistSize
In 32 34 36 38 |
Not In
|
|
Accepts the source row
when the column value is not included anywhere within the comparator’s
list of constant values.
City Not
In New York Chicago Los
Angeles WaistSize
Not In 32 34 36 38 |
Like
|
|
Accepts the source row
when the column value matches the result of an expression in the comparator.
The source value and the comparator are compared on a character-by-character
basis. For character columns, case sensitivity can be enabled.
Use the pattern-matching
character
% to indicate any string of characters.
Use the underscore character _ to indicate
any single character in that position.
Note that trailing blank
characters are written to the target table when using
% at
the end of the comparator.
Use the word
escape to
include literal instances of % and _ in
the comparator.
SalesRegion
Like NorthAmer% AnnualSales
Like 199_ CustSatisfaction
Like 100 escape % |
Not Like
|
|
Accepts the source row
when the column value does not match the result of an expression in
the comparator. The source value and the comparator are compared on
a character-by-character basis. For character columns, case sensitivity
can be enabled. Pattern-matching characters
% and _ and escape are
valid as described for the Like operator.
Sports Not
Like %ball FootballFieldLength
Not Like 100% |
Contains
|
|
Accepts the source row
when the column value is found within the character string of the
comparator. Case sensitivity can be enabled.
Address
Contains IL LicenseNumber
Contains 7227 |
Not Contains
|
|
Accepts the source row
when the column value is not found within the character string of
the comparator. Case sensitivity can be enabled.
Month Not
Contains OctNovDec SalesMonthly
Not Contains 0 |
Between
|
|
Accepts the source row
when the column value or date is between the two values or dates in
the comparator, but is not equal to either.
GradeAverage
Between 87.5 93 DailySales
Between December 20, 2014 December 27, 2014 |
Greater Than
|
|
Accepts the source row
when the column value is greater than the value of the comparator.
AnnualSales
GreaterThan 100000 |
Greater Than Or Equal
To
|
|
Accepts the source row
when the column value is equal to the comparator or greater than the
comparator.
CarsInFamily
Greater Than or Equal To 3 |
Less Than
|
|
Accepts the source row
when the column value is less than the value of the comparator.
GamerAge
Less Than 30 |
Less Than Or Equal To
|
|
Accepts the source row
when the column value is equal to the value of the comparator, or
less than the value of the comparator.
SalesYear
Less Than Or Equal To 2010 |
After
|
|
Accepts the source row
when the column date is later than the date in the comparator.
HomePurchaseDate
After January 1, 2013 |
Before
|
|
Accepts the source row
when the column date is earlier than the date in the comparator.
BirthDate
Before March 17, 1980 |
On Or After
|
|
Accepts the source row
when the column date is later than, or the same date as, the date
in the comparator.
DailySales
On Or After January 1, 2014 |
On Or Before
|
|
Accepts the source row
when the column date is earlier than, or the same date as, the date
in the comparator.
DailySales
On Or Before December 31, 2013 |