reddyr1 wrote: \begin{question} %macro eye (eye,dat, id); data adae ; set adamdata.adae; where &cond1; run; %mend eye; The where condition(in red color) needs to be modified for each table. Eg: where ethnicity="Hispanic" \end{question} your problem is that you want to pass a string with an equals sign in it as a parameter. change from special character (=) to mnemonic (eq) %macro eye (eye=,dat=, id=,cond1=); %put &=cond1; * ... where &cond1; run; %mend; %eye(eye=,dat=,id= ,cond1=ethnicity eq 'Hispanic');
... View more