No need to modify the macro.
1559
1560 %cardataset(carlst=("Audi","BMW","Ford"))
MPRINT(CARDATASET): data new;
MPRINT(CARDATASET): set sashelp.cars;
MPRINT(CARDATASET): if make in(("Audi","BMW","Ford"));
MPRINT(CARDATASET): run;
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: The data set WORK.NEW has 62 observations and 15 variables.
NOTE: DATA statement used (Total process time):
real time 0.08 seconds
cpu time 0.04 seconds
IN operator does not seem to mind extra random parentheses (although it would complain if actually included brackets like [ ] or { } ).
... View more