This macro will work when I state a single number in %reg(), but when I try to add additional numbers, for example %reg(#,#,#...) it will not run and the log states ERROR: More positional parameters found than defined. Does anyone have any idea what I need to change in my code? (The code I've included in just an example)
The code above works, but if I try this code, it does not:
Code:
%macro reg(number);
proc logistic data=&data (where=(variable in (&number));
by variable;
%mend;
%reg(250);
Code:
%macro reg(number);
proc logistic data=&data (where=(variable in (&number));
by variable;
%mend;
%reg(250,251,252);