%macro mokcsl(where=where,msacmsa=msacmsa,state=state); %*--this macro generates a where statement (user can override with positional parm with value if "if" to subset an input dataset with std variable names so that it is the state of Mo + the KC, KS counties + the StL, Il counties--; &where &state='29' or (&state='20' and &msacmsa='3760') or (&state='17' and &msacmsa='7040'); %mend mokcsl;