Return to Homepage

Goto the Tip of the Month Archive

Other interesting pages ...
LinkedIn Profile
SAS Cheat Sheet
Useful SAS Code
Full SAS Example
Basic Statistics
Contact Information

SAS Tip of the Month
June 2014
(for SAS and WPS)

Did you know that the IN operator can use ranges of values? Here is an example:

   if mcode in(1,2,3,4,7,8,9,11) then do;

but this can be shortened to

   if mcode in(1:4,7:9,11) then do;

It does save a bit of time on coding.

Hope this is useful. See you next month.

________________________________
Updated June 2, 2014