A simple way to do this (subject to the answer to Patrick's question) is to use the IN operator: WHERE &last_updated_month IN ("&month1", "month2", "&month3") which should boil down to doing exactly the same as your second syntax suggestion. The first suggestion whilst it would be nice is not supported in SAS data steps
... View more