Here's a reference article I found handy for working with the in operator in macros. It entails listing the 'in' delimiter. Hope this helps! Sample 35591: How to use the new macro IN operator for SAS 9.2 http://support.sas.com/kb/35/591.html Starting SAS 9.2, there is an IN operator for the macro language. The IN operator can now be used on the %IF statement when the MINOPERATOR option is set on the %MACRO statement or as a SAS system option. options minoperator mlogic; %macro test(value)/mindelimiter=','; %if &value in 1,2,3,4,5,6 %then %put Value found within list.; %else %put Value not in list.; %mend;
... View more