I saw a suggestion arrive from a SAS customer who would like to see the IN operator extended to allow ranges of date values. For example, you can currently write a program that checks for values IN a collection or range of numbers:
data check; if x in (1:10) then result="match"; run;
This matches on the set of numbers 1 through 10, inclusive. The customer would like to see something like this supported, to match on the dates that fall within a given range.
data check; if x in ('01JAN2010'd : '01FEB2010'd) then result="match"; run;
It's a great suggestion. But in the meantime, you can satisfy this simple example by using the shorthand for the AND operator:
data check; if '01JAN2010'd <= x <='01FEB2010'd then result="match"; run;
There are many other ways to "skin this cat", including using PROC SQL and the BETWEEN condition. What's your favorite?