As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tips:Use the BETWEEN-AND Operator to Search an Inclusive Range of Values

From sasCommunity
Revision as of 11:01, 13 September 2017 by Paulkaefer (Talk | contribs)

Jump to: navigation, search

The BETWEEN-AND operator can be used inside of a where statement to determine if the value of a variable is contained within an inclusive range:

proc print data=sashelp.retail;
    where year between 1980 and 1984;

Notice that the boundaries that you give are always included in the range, so in this case the data from 1980 and 1984 is printed, along with data from 1981-1983.

....see also more more

Submitted By Otterm1